[BusyBox] Bug in libbb/getopt_ulflags.c?

Vladimir N. Oleynik dzo at simtreas.ru
Wed Feb 4 12:38:13 UTC 2004


Erik,

>>There have been no changes to coreutils/uname.c, so I am guessing
>>the changes to libbb/getopt_ulflags.c are causing the problem.
> 
> 
> You are exactly correct.  In rev 1.5 of libbb/getopt_ulflags.c
> the variable 'complementaly' used to be allocated with calloc,
> (which zeroed it during the allocation process).  When vodz
> changed it to be allocated on the stack, he forgot to explicitly
> zero it out,

No. New algorithm not require zeroed. But, I ready for look problem
with real tests always ;-)


--w
vodz





More information about the busybox mailing list