strtol broken?

Zack Weinberg zack@rabi.phys.columbia.edu
Tue Jul 28 12:26:00 GMT 1998


The strtol in latest CVS fails part of the test suite.  I'm not sure
if it's strtol or the tester that's broken.

    strtol("2147483648", , 0) test 3 failed:
    returns -2147483648, expected 2147483647
    errno 0 (Success)  instead of 34 (Numerical result out of range)
    strtol("214748364888", , 0) test 4 failed:
    returns -1, expected 2147483647
    strtol("2147483650", , 0) test 5 failed:
    returns -2147483646, expected 2147483647
    errno 0 (Success)  instead of 34 (Numerical result out of range)
    strtol("0x1122334455z", , 16) test 9 failed:
    returns -1, expected 2147483647

zw



More information about the Libc-hacker mailing list