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 libc/15524] New: clock() behaves incorrectly on overflow


http://sourceware.org/bugzilla/show_bug.cgi?id=15524

             Bug #: 15524
           Summary: clock() behaves incorrectly on overflow
           Product: glibc
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: libc
        AssignedTo: unassigned@sourceware.org
        ReportedBy: bugdal@aerifal.cx
                CC: drepper.fsp@gmail.com
    Classification: Unclassified


According to the Austin Group interpretation for issue 686
(http://austingroupbugs.net/view.php?id=686), the current behavior of clock()
on 32-bit systems, wrapping when it overflows the range of clock_t, is
non-conforming to the requirements of ISO C, which require returning
(clock_t)-1 if the result is not representable.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- 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]