[PATCH] ping6: segfault on incorrect command line

Leonid Lisovskiy lly.dev at gmail.com
Thu Nov 19 19:34:38 UTC 2009


On Thu, Nov 19, 2009 at 9:20 PM, walter harms <wharms at bfs.de> wrote:
> Leonid Lisovskiy schrieb:
>> On Thu, Nov 19, 2009 at 8:52 PM, walter harms <wharms at bfs.de> wrote:
>>> no luck, ping6 works for me also with 1.15.2 there is also no problem with getopt()
>>
>> Have you link against uClibc as i wrote in the first my post? Problem
>> don't appear with glibc.
>
> Indeed i used glibc, but it should not matter since argv-1 itself is never used.

uClibc don't initializes memory as glibc, so argv[-1] which become
argv[0] in ping_main were initialized to random value rather than NULL
in glibc. I don't  know exactly were crash is happens, I have to
install gdb to do this research, but segfault is real.

> what processor did you use ?

MIPS32 LE

Leonid


More information about the busybox mailing list