|
Re: patch to login, dmesg and obscure: msg#00220linux.busybox
Ronny, This start to be realy fun soon... :-) The litte prog below mimics password_check() behaviour and it sure craches on my machine. Howcome? It shouldn't if you're right. Its not overflow, its bug ;-)) True is: int main(void) { const char *old="0123456789"; char *wrapped; int lenwrap; lenwrap = strlen(old); wrapped = malloc(lenwrap * 2 + 1); strcpy(wrapped, old); strncat(wrapped+lenwrap, wrapped, lenwrap); wrapped[lenwrap*2] = 0; printf("wrapped: %s\n", wrapped); free(wrapped); return 0; } --w vodz |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: patch to login, dmesg and obscure: 00220, Ronny L Nilsson |
|---|---|
| Next by Date: | Re: Some problems with busybox-1.0.0-pre1: 00220, Eric Spakman |
| Previous by Thread: | Re: patch to login, dmesg and obscurei: 00220, Ronny L Nilsson |
| Next by Thread: | Re: patch to login, dmesg and obscure: 00220, Robert Griebl |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |