]> sourceware.org Git - systemtap.git/commit
Fix width of _stp_filename_lookup_5's offset to .debug_line_str
authorMartin Cermak <mcermak@redhat.com>
Thu, 25 Jan 2024 10:37:07 +0000 (11:37 +0100)
committerMartin Cermak <mcermak@redhat.com>
Thu, 25 Jan 2024 10:37:07 +0000 (11:37 +0100)
commit011af964e27889ca8c7f498ad7cf3e54c4c8b652
tree17e2fa0bf6c5817a690a56ac74ebba1338ddee0c
parent2c7b106cc40507151bb632a74128b63612d1670a
Fix width of _stp_filename_lookup_5's offset to .debug_line_str

The read_pointer( ... DW_EH_PE_data4 ... ) gives a 4 byte value.
Elfutil's readelf.c does this with read_4ubyte_unaligned_inc().
Adjust the storage width for such offset to prevent overflow.
Problem demonstrated with context.exp / symfileline.tcl.
runtime/common_probe_context.h
runtime/sym2.c
This page took 0.027882 seconds and 5 git commands to generate.