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:32:14 +0000 (00:32 +0200)
commitdce0b3b63ba05e2bebd4543ac9248cc0d48b2d2a
treefc7733b801de4cedf29b49269f6adf33e3e9324e
parent1e7c230b277b6eb82577a3bc4b56ca291c28964d
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/ChangeLog