[PATCH] "mdev" segfault when invoked without -s at a shell prompt
Piotr Karbowski
piotr.karbowski at gmail.com
Sat Jun 29 16:03:03 UTC 2013
On 06/29/2013 07:42 AM, jody at jodybruchon.com wrote:
> When I execute "mdev" without any parameters and outside of a kernel hotplug
> event that sets the environment variable ACTION, mdev segfaults. I tracked this
> down to a failure to check the result of the call getenv("ACTION"). The help
> text should be updated to reflect the fact that mdev shouldn't be run standalone
> without the "-s" parameter, but my main concern is fixing the segfault, which is
> what this patch does. I hope this is mildly helpful. We can't have BusyBox
> applets crashing merely because they're invoked out of curiosity, right? :)
It was already fixed in git.
commit d35cbad0efaa57bf7c5280e62825966f7757906a
Author: Denys Vlasenko <vda.linux at googlemail.com>
Date: 2013-04-02 14:37:06 +0200
mdev: call index_in_strings on $ACTION only after we checked it for
NULL
-- Piotr.
More information about the busybox
mailing list