Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 570780

Summary: app-misc/pax-utils: dumpelf hang
Product: Gentoo Linux Reporter: Hanno Böck <hanno>
Component: Current packagesAssignee: SpanKY <vapier>
Status: RESOLVED NEEDINFO    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: sample input

Description Hanno Böck gentoo-dev 2016-01-03 19:18:34 UTC
Created attachment 421806 [details]
sample input

The attached file (a malformed / fuzzed elf from afl) will cause the dumpelf tool from pax-utils/git to hang.

(using the current release this file causes a segfault due to a nullptr access, it seems the segfault has been fixed in git)
Comment 1 SpanKY gentoo-dev 2016-01-03 19:48:50 UTC
i can't confirm this.  it works fine for me w/git.  please show the build log, and attach gdb to get a backtrace when it hangs.

$ make clean
$ make -j
$ ./dumpelf ./bug570780 >/dev/null 
dumpelf: ./bug570780: Invalid section header info (3)

real    0m0.055s
user    0m0.024s
sys     0m0.028s
$ make debug -j
... no crashes/hangs ...