This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug network/20017] New: resolv: Use gmtime_r instead of gmtime in p_secstodate


https://sourceware.org/bugzilla/show_bug.cgi?id=20017

            Bug ID: 20017
           Summary: resolv: Use gmtime_r instead of gmtime in p_secstodate
           Product: glibc
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: network
          Assignee: unassigned at sourceware dot org
          Reporter: fweimer at redhat dot com
  Target Milestone: ---
             Flags: security-

resolv/res_debug.c is compiled with HAVE_TIME_R, so it calls gmtime instead of
gmtime_r, clobbering the global time value.   As a result, p_secstodate and
ns_sprintrrf are not thread-safe.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]