mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-11-29 02:22:43 +00:00
Put back base > 35 check. If someone dislike it, plese discuss it with
standards group first.
This commit is contained in:
parent
6497eddc3f
commit
649ffc6d4b
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=87020
@ -87,7 +87,7 @@ strtol(nptr, endptr, base)
|
||||
if (base == 0)
|
||||
base = c == '0' ? 8 : 10;
|
||||
acc = any = 0;
|
||||
if (base < 2)
|
||||
if (base < 2 || base > 35)
|
||||
goto noconv;
|
||||
|
||||
/*
|
||||
|
@ -86,7 +86,7 @@ strtoll(nptr, endptr, base)
|
||||
if (base == 0)
|
||||
base = c == '0' ? 8 : 10;
|
||||
acc = any = 0;
|
||||
if (base < 2)
|
||||
if (base < 2 || base > 35)
|
||||
goto noconv;
|
||||
|
||||
/*
|
||||
|
@ -84,7 +84,7 @@ strtoul(nptr, endptr, base)
|
||||
if (base == 0)
|
||||
base = c == '0' ? 8 : 10;
|
||||
acc = any = 0;
|
||||
if (base < 2)
|
||||
if (base < 2 || base > 35)
|
||||
goto noconv;
|
||||
|
||||
cutoff = ULONG_MAX / base;
|
||||
|
@ -84,7 +84,7 @@ strtoull(nptr, endptr, base)
|
||||
if (base == 0)
|
||||
base = c == '0' ? 8 : 10;
|
||||
acc = any = 0;
|
||||
if (base < 2)
|
||||
if (base < 2 || base > 35)
|
||||
goto noconv;
|
||||
|
||||
cutoff = ULLONG_MAX / base;
|
||||
|
Loading…
Reference in New Issue
Block a user