* De: Julian Elischer <[EMAIL PROTECTED]> [ Data: 2002-11-16 ]
        [ Subjecte: Re: Sign fixes for disklabel(8) ]
> +     u_int v;
> [...]
> +                     v = strtoul(tp, NULL, 10);

strtoul returns 'unsigned long', not 'unsigned int', and this can
overflow.  The type of 'v' is poorly chosen, as bde said.  Yes it
was fine for 'atoi', but 'atoi' is not 'strtoul'.
-- 
Juli Mallett <[EMAIL PROTECTED]>
OpenDarwin, Mono, FreeBSD Developer.
ircd-hybrid Developer, EFnet addict.
FreeBSD on MIPS-Anything on FreeBSD.

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message

Reply via email to