fix spurious overflows in strtoull with small bases
authorRich Felker <dalias@aerifal.cx>
Fri, 13 Apr 2012 07:26:59 +0000 (03:26 -0400)
committerRich Felker <dalias@aerifal.cx>
Fri, 13 Apr 2012 07:26:59 +0000 (03:26 -0400)
commit54222d1efc5239d3fc8c528672bd52bfd8dad813
tree703fffd260ae2435d51fc19a582906eca9a317a6
parent3ddeedd8f75be8a3dc2a167746f36f871d7e595a
fix spurious overflows in strtoull with small bases

whenever the base was small enough that more than one digit could
still fit after UINTMAX_MAX/36-1 was reached, only the first would be
allowed; subsequent digits would trigger spurious overflow, making it
impossible to read the largest values in low bases.
src/internal/intparse.c