[PATCH] libdw, readelf, elflint: Add get_(u|s)leb128 guards

2023-02-12 Thread Mark Wielaard
Add sanity check making sure an leb128 isn't being read beyond the end of the current data segment. Most code already had these guards, but some were missing. This makes sure an appropriate error is generated instead. Signed-off-by: Mark Wielaard --- libdw/ChangeLog | 16 +++

A scenario where Perf cannot unwind the user stack by dwarf with libdw.so

2023-02-12 Thread liuxu (AJ) via Elfutils-devel
Hi all, I am failing to unwind the user stack with libdw on Ubuntu 18.04 arm64 environment, the toolchain used is clang 12.0.1. form the unwinding process, I found that the pc value passing to handle_cfi is 0x760, which is 0x1 offset from the corresponding cfi address 0x10760. Futher ana