Bug 669 - hush's exec applet mishandles empty strings ""
Summary: hush's exec applet mishandles empty strings ""
Status: RESOLVED FIXED
Alias: None
Product: Busybox
Classification: Unclassified
Component: Standard Compliance (show other bugs)
Version: unspecified
Hardware: PC Linux
: P5 enhancement
Target Milestone: ---
Assignee: unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-10-18 05:19 UTC by Mike Frysinger
Modified: 2009-10-18 17:55 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mike Frysinger 2009-10-18 05:19:17 UTC
while fixing `` and $() seemed to be easy (hopefully i put the check at the right place), the exec "" crash seems to be a nested issue

builtin_exec() uses pseudo_exec_argv(), but the functions this one relies on seems to eat empty strings.  for example:
exec ""
exec ls ""

hush segfaults on the first one while the second one it interprets as:
exec ls
Comment 1 Denys Vlasenko 2009-10-18 09:44:47 UTC
Please try current git. It should have it fixed.
Comment 2 Mike Frysinger 2009-10-18 17:55:13 UTC
yep, thanks