readelf: Define dyn_mem outside the while loop.
authorMark Wielaard <mark@klomp.org>
Tue, 19 Apr 2022 09:25:42 +0000 (11:25 +0200)
committerMark Wielaard <mark@klomp.org>
Tue, 19 Apr 2022 09:25:42 +0000 (11:25 +0200)
commit21fa92319657ca479ae108967fd41ac523a2f876
tree3c93c29f4f955a04e925b7afb3aa889e09d7a3c2
parent5b497d8da4920bf7b63a4aa3752cf580b3ad654c
readelf: Define dyn_mem outside the while loop.

The GCC address sanitizer might complain otherwise:
stack-use-after-scope src/readelf.c:1787 in get_dyn_ents

Signed-off-by: Mark Wielaard <mark@klomp.org>
src/ChangeLog
src/readelf.c