Bug 7598 - Crash executing code - Fuzz Testing
Summary: Crash executing code - Fuzz Testing
Status: RESOLVED FIXED
Alias: None
Product: Busybox
Classification: Unclassified
Component: Other (show other bugs)
Version: 1.21.x
Hardware: PC Linux
: P5 normal
Target Milestone: ---
Assignee: unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-11-06 20:22 UTC by Fernando Muñoz
Modified: 2014-11-17 19:28 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 Fernando Muñoz 2014-11-06 20:22:25 UTC
The following code makes busybox segfault:

export R="";
echo "${R:$((${R}-1)):1}"

I don't have a busybox debug version at the moment.

$ gdb busybox

...

(gdb) run  sh -c 'export R="";echo "${R:$((${R}-1)):1}"'^C
Starting program: /bin/busybox sh -c 'export R="";echo "${R:$((${R}-1)):1}"'^C

Program received signal SIGSEGV, Segmentation fault.
0x0000000000422825 in ?? ()
Comment 1 Denys Vlasenko 2014-11-17 19:28:09 UTC
Fixed in git.