From: Mark Wielaard Date: Tue, 16 Oct 2018 12:22:33 +0000 (+0200) Subject: readelf: Make sure readp is smaller than cieend in print_debug_frame_section. X-Git-Tag: elfutils-0.175~24 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=dce0b3b63ba05e2bebd4543ac9248cc0d48b2d2a;p=thirdparty%2Felfutils.git 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 --- diff --git a/src/ChangeLog b/src/ChangeLog index 0cbcf80c7..602312e7f 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2018-10-16 Mark Wielaard + + * readelf.c (print_debug_frame_section): Make sure readp is never + greater than cieend. + 2018-10-19 Mark Wielaard * dwfl_module_getdwarf.c (adjust_relocs): Check sh_entsize is not