|
Re: patch to login, dmesg and obscure: msg#00254linux.busybox
Hi again. > Yipe! strcat(wrapped, wrapped) is very evil! > safe_strncpy(wrapped + lenwrap, wrapped, lenwrap + 1); Looking at the issue in libbb/obscure.c:password_check(), I think there's still an error in 1.00-pre2. The handpatch by Vladimir copies too much data, the source string ain't that long which the SIZE argument to strncpy() say. > But your lenold new variable and recalculate lenght is not require. OK, since optimization seems to be what is wanted... This patch fixes what Vladimir missed, AND does some optimization too. :) Reduction of one str_lower() and two bzero() calls, which was unecessary. (Could use a second opinion though). /Ronny
busybox mailing list busybox@xxxxxxxxxxxxxxxx http://codepoet.org/mailman/listinfo/busybox |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | compiling strace using buildroot for mipsel: 00254, Tony Saladino |
|---|---|
| Next by Date: | Re: patch to login, dmesg and obscure: 00254, Vladimir N. Oleynik |
| Previous by Thread: | Vodz 100th patch (was Re: patch to login, dmesg and obscure)i: 00254, Glenn McGrath |
| Next by Thread: | Re: patch to login, dmesg and obscure: 00254, Vladimir N. Oleynik |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |