readelf: Make sure readp is smaller than cieend in print_debug_frame_section.
authorMark Wielaard <mark@klomp.org>
Tue, 16 Oct 2018 12:22:33 +0000 (14:22 +0200)
committerMark Wielaard <mark@klomp.org>
Fri, 19 Oct 2018 22:55:56 +0000 (00:55 +0200)
commit72d023b35f3639864b61bd1c11aaadc4957e6286
tree83ffd43432d6e8ddd6afab496375bafa1951f060
parentdce0b3b63ba05e2bebd4543ac9248cc0d48b2d2a
readelf: Make sure readp is smaller than cieend in print_debug_frame_section.

We could end up with a negative length in a call to memchr.

https://sourceware.org/bugzilla/show_bug.cgi?id=23782

Signed-off-by: Mark Wielaard <mark@klomp.org>
src/readelf.c