Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 570780 - app-misc/pax-utils: dumpelf hang
Summary: app-misc/pax-utils: dumpelf hang
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: SpanKY
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-01-03 19:18 UTC by Hanno Böck
Modified: 2016-01-03 19:48 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
sample input (dumpelf-hang,512 bytes, application/octet-stream)
2016-01-03 19:18 UTC, Hanno Böck
Details

Note You need to log in before you can comment on or make changes to this bug.
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 ...