diff options
| author | Indu Bhagat <indu.bhagat@oracle.com> | 2025-06-03 23:10:46 -0700 |
|---|---|---|
| committer | Indu Bhagat <indu.bhagat@oracle.com> | 2025-06-03 23:10:46 -0700 |
| commit | d984b08bb707a732358341b44b444c1c9860b287 (patch) | |
| tree | 06311d534b30730b6fb442f7c6963d0a9fcd6341 /gdb/python/python-internal.h | |
| parent | 062184b9eb19fa3ef054f8138b94e518e0d77c05 (diff) | |
| download | binutils-d984b08bb707a732358341b44b444c1c9860b287.zip binutils-d984b08bb707a732358341b44b444c1c9860b287.tar.gz binutils-d984b08bb707a732358341b44b444c1c9860b287.tar.bz2 | |
sframe: fix PR libsframe/33051
Fix PR libsframe/Bug 33051 - ASAN: heap-buffer-overflow
../../src/libsframe/sframe.c:1054 in
sframe_get_funcdesc_with_addr_internal
The previous commit 9d2a24349e2 (libsframe: correct binary search for
SFrame FDE) adapted the binary search logic in
sframe_get_funcdesc_with_addr_internal. Adjusting the upper end of the
search index was missed.
The search must only be done for FDEs starting at index 0 and up until
num_fdes - 1. Prior logic of searching (before commit 9d2a24349e2) was
a bit different.
libsframe/
* sframe.c: Use the correct high index.
Diffstat (limited to 'gdb/python/python-internal.h')
0 files changed, 0 insertions, 0 deletions
