fix overflow corner case in strtoul-family functions
authorRich Felker <dalias@aerifal.cx>
Tue, 16 Sep 2014 20:08:53 +0000 (16:08 -0400)
committerRich Felker <dalias@aerifal.cx>
Tue, 16 Sep 2014 20:08:53 +0000 (16:08 -0400)
commite2e1bb81485a37321d928a8d8b63f40b9d8fa228
tree9b62eab14fa49e9a1f7cf9bc350a53d79eca60f0
parentec1aed0a144b3e00e16eeb142c9d13362d6048e7
fix overflow corner case in strtoul-family functions

incorrect behavior occurred only in cases where the input overflows
unsigned long long, not just the (possibly lower) range limit for the
result type. in this case, processing of the '-' sign character was
not suppressed, and the function returned a value of 1 despite setting
errno to ERANGE.
src/internal/intscan.c