|
Re: patch to login, dmesg and obscure: msg#00255linux.busybox
Ronny, 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. You tested your patch? :-0 see safe_strncpy realization: dst[size-1] = '\0'; return strncpy(dst, src, size-1); look previous example again: old="123" safe_strncpy(old+3, old, 4) => old[3+4-1 = 6] = '\0'; old[3] = '1'; old[4] = '2'; old[5] = '3' Absolutely correct. newmono = str_lower(bb_xstrdup(newval)); Why not called str_lower ? - else { safe_trncpy returning pointer to first argument, you compare &wrapped[lenwrap], but require comparing new double spliting wrapped. - bzero(newmono, strlen(newmono)); Its memory inspect protection. --w vodz |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: patch to login, dmesg and obscure: 00255, Ronny L Nilsson |
|---|---|
| Next by Date: | ash bug (was: BusyBox 1.0.0-pre2 released): 00255, Jean Wolter |
| Previous by Thread: | Re: patch to login, dmesg and obscurei: 00255, Ronny L Nilsson |
| Next by Thread: | NOTICE: mistyping inside the ash.c: 00255, Nick Fedchik |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |