Re: [PATCH] libdw: Simplify __libdw_getabbrev and fix dwarf_offabbrev issue

2025-02-13 Thread Aaron Merey
Hi Mark, On Mon, Feb 10, 2025 at 10:49 AM Mark Wielaard wrote: > > __libdw_getabbrev could crash on reading a bad abbrev by trying to > deallocate memory it didn't allocate itself. This could happen because > dwarf_offabbrev would supply its own memory when calling > __libdw_getabbrev. No other c

[PATCH] libdw: Simplify __libdw_getabbrev and fix dwarf_offabbrev issue

2025-02-10 Thread Mark Wielaard
__libdw_getabbrev could crash on reading a bad abbrev by trying to deallocate memory it didn't allocate itself. This could happen because dwarf_offabbrev would supply its own memory when calling __libdw_getabbrev. No other caller did this. Simplify the __libdw_getabbrev common code by not taking e