Bug 8716 - shell/ash.c:527:2: runtime error: null pointer passed as argument 1, which is declared to never be null
Summary: shell/ash.c:527:2: runtime error: null pointer passed as argument 1, which is...
Status: NEW
Alias: None
Product: Busybox
Classification: Unclassified
Component: Other (show other bugs)
Version: 1.24.x
Hardware: All Linux
: P5 normal
Target Milestone: ---
Assignee: unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-02-25 20:46 UTC by Fernando Muñoz
Modified: 2016-02-25 20:46 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:


Attachments
config (32.33 KB, text/plain)
2016-02-25 20:46 UTC, Fernando Muñoz
Details
test case (27 bytes, application/x-shellscript)
2016-02-25 20:46 UTC, Fernando Muñoz
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Fernando Muñoz 2016-02-25 20:46:15 UTC
Created attachment 6346 [details]
config

Attached config and minnull.sh script that triggers the issue on the current git version:

test@kali:/root/fuzzshell$ ./busybox_unstripped sh minnull.sh 
shell/ash.c:527:2: runtime error: null pointer passed as argument 1, which is declared to never be null
ASAN:SIGSEGV
=================================================================
==20091==ERROR: AddressSanitizer: SEGV on unknown address 0x00000000 (pc 0xb7475911 bp 0x00000001 sp 0xbfffe79c T0)
    #0 0xb7475910  (/lib/i386-linux-gnu/i686/cmov/libc.so.6+0x76910)
    #1 0xb7468ddf in fputs_unlocked (/lib/i386-linux-gnu/i686/cmov/libc.so.6+0x69ddf)
    #2 0x8073630 in outstr shell/ash.c:527

AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV ??:0 ??
==20091==ABORTING

$ cat minnull.sh
hash cat>0
command -pv cat
Comment 1 Fernando Muñoz 2016-02-25 20:46:56 UTC
Created attachment 6351 [details]
test case