On Thu, Apr 23, 2015 at 11:11:42AM -0600, Todd C. Miller wrote:
> CVSROOT:      /cvs
> Module name:  src
> Changes by:   [email protected] 2015/04/23 11:11:42
> 
> Modified files:
>       usr.sbin/user  : user.c 
> 
> Log message:
> Replace atoi() usage with strtonum().  OK deraadt@

But it broke it...

Starting program: /usr/sbin/useradd test
(no debugging symbols found)

Program received signal SIGSEGV, Segmentation fault.
strtoll (nptr=0x0, endptr=0x7f7fffff0730, base=10)
    at /usr/src/lib/libc/stdlib/strtoll.c:70
70                      c = (unsigned char) *s++;
(gdb) bt
#0  strtoll (nptr=0x0, endptr=0x7f7fffff0730, base=10)
    at /usr/src/lib/libc/stdlib/strtoll.c:70
#1  0x000004ba2186ebb2 in strtonum (numstr=0x0, minval=-2147483648, 
    maxval=2147483647, errstrp=0x0) at /usr/src/lib/libc/stdlib/strtonum.c:50
#2  0x000004b7e2d05327 in ?? () from /usr/sbin/useradd
#3  0x000004b7e2d07940 in ?? () from /usr/sbin/useradd
#4  0x000004b7e2d02a41 in ?? () from /usr/sbin/useradd
#5  0x0000000000000000 in ?? ()


-- 
Antoine

Reply via email to