[prev in list] [next in list] [prev in thread] [next in thread] 

List:       busybox
Subject:    Re: [PATCH] ping6: segfault on incorrect command line
From:       Leonid Lisovskiy <lly.dev () gmail ! com>
Date:       2009-11-20 13:04:03
Message-ID: cea891910911200504j61475db6ta83bbea2050f8911 () mail ! gmail ! com
[Download RAW message or body]

After some more investigations, I discover that this segfault caused
by that uClibc 0.9.30.1 definitely uses argv[0] inside getopt &
getopt_long. In other words, uClibc always requires valid argv[0]
pointer in case of it needs to output message in _getopt_internal_r().
But some applets, as it mentioned in libbb's getopt32, don't have
valid argv[0]...

I can't imagine any correct & small workaround yet, maybe Denys can
help us find allowable solution?

Regards,
   Leonid
_______________________________________________
busybox mailing list
busybox@busybox.net
http://lists.busybox.net/mailman/listinfo/busybox
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic