[BusyBox] [PATCH] my_getpwuid and my_getgrgid buffer overflows: Addendum for whoami.c

Tito farmatito at tiscali.it
Wed Aug 25 18:50:17 UTC 2004


Hi, 
I've fixed also the issue of whoami cutting down usernames.
This time I cannot send a diff because i don't know if my previous patches will be applied 
or not, so I send in the whole file.
The changes I've made don't affect size but ensure that usernames of whatever lenght
are correctly displayed.
root at localhost:/dev/pts/3:/root/Desktop/busybox/coreutils# size whoami_orig.o
   text    data     bss     dec     hex filename
    102       0       0     102      66 whoami_orig.o
root at localhost:/dev/pts/3:/root/Desktop/busybox/coreutils# size whoami.o
   text    data     bss     dec     hex filename
     93       0       0      93      5d whoami.o

This should be applied even if the other patches aren't as this matches the behaviour of the  GNU whoami.

Thanks in advance,
Ciao,
Tito
-------------- next part --------------
A non-text attachment was scrubbed...
Name: whoami.c
Type: text/x-csrc
Size: 1328 bytes
Desc: not available
Url : http://lists.busybox.net/pipermail/busybox/attachments/20040825/defad050/attachment.c 


More information about the busybox mailing list