Re: malformed elf file causes readelf -e to hang forever

2015-01-25 Thread Josh Stone
On 01/25/2015 11:39 AM, Hanno Böck wrote: > Hi, > > Please see attached file, which is a malformed (fuzzed) elf file that > causes elfutil's readelf -e to hang, testet with the latest version > 0.161. > > This was found with zzuf. You should be fuzzing with git master, as Mark is still making a

Re: malformed elf causes invalid shiftleft in readelf -S with ubsan

2015-01-25 Thread Josh Stone
On 01/25/2015 11:42 AM, Hanno Böck wrote: > Hi, > > When compiling elfutils with undefined behaviour sanitizer > (-fsanitize=undefined) a warning will be shown indicating an invalid > shiftleft operation on the attached elf file: > > readelf.c:1133:28: runtime error: left shift of 1 by 31 places

malformed elf causes invalid shiftleft in readelf -S with ubsan

2015-01-25 Thread Hanno Böck
Hi, When compiling elfutils with undefined behaviour sanitizer (-fsanitize=undefined) a warning will be shown indicating an invalid shiftleft operation on the attached elf file: readelf.c:1133:28: runtime error: left shift of 1 by 31 places cannot be represented in type 'int' Tested with elfutil

malformed elf file causes readelf -e to hang forever

2015-01-25 Thread Hanno Böck
Hi, Please see attached file, which is a malformed (fuzzed) elf file that causes elfutil's readelf -e to hang, testet with the latest version 0.161. This was found with zzuf. cu, -- Hanno Böck http://hboeck.de/ mail/jabber: ha...@hboeck.de GPG: BBB51E42 readelf-e-hang.tar.xz Description: app