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 stdio/15929] scanf doesn't set errno to ERANGE for unsigned short overflows


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

--- Comment #1 from Andreas Schwab <schwab@linux-m68k.org> ---
POSIX does not specify ERANGE for fscanf.  The ERANGE error comes from strtoul
which checks against ULONG_MAX (not UINT_MAX).  If you want to do range
checking you have to do it yourself.

-- 
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]