https://sourceware.org/bugzilla/show_bug.cgi?id=34382
Mark Wielaard <mark at klomp dot org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |mark at klomp dot org
Resolution|--- |FIXED
Status|UNCONFIRMED |RESOLVED
--- Comment #1 from Mark Wielaard <mark at klomp dot org> ---
Thanks. We indeed should move the sanity check before the read instead of
after.
BTW. You can simply configure with --enable-sanitize-address and/or
--enable-valgrind and --enable-sanitize-undefined to get various address and/or
undefined behaviour checkers enabled.
commit 827a8916590e244720049ec1f438d3ca6763472a
Author: Mark Wielaard <[email protected]>
Date: Thu Jul 9 21:56:56 2026 +0200
libdw: Sanity check macros line_offset before reading
We checked there were enough bytes left after reading the
line_offset. Move the check before the read.
* libdw/dwarf_getmacros.c (get_table_for_offset): Check
offset_bytes before calling read_addr_unaligned_inc.
https://sourceware.org/bugzilla/show_bug.cgi?id=34382
Reported-by: Karan Kurani <[email protected]>
Signed-off-by: Mark Wielaard <[email protected]>
--
You are receiving this mail because:
You are on the CC list for the bug.