summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMark Wielaard <mark@klomp.org>2022-11-03 13:38:45 +0100
committerFrank Ch. Eigler <fche@redhat.com>2023-04-07 10:53:41 -0400
commitd365524a301b2a63239ac004282679839b15d23e (patch)
treeb6bd46829942447afcbb649de1a636b6566a190f /tests
parent0a15e368d303e2e914ec6d1e4cc3476c93ec7d1d (diff)
downloadelfutils-d365524a301b2a63239ac004282679839b15d23e.tar.gz
readelf: Check phdr != NULL or shdr != NULL in handle_dynamic.
The compiler doesn't know that when use_dynamic_segment is true, then phdr should/will be non-NULL and otherwise shdr is non-NULL. Add explicit checks to help the compiler out and in case an error is made calling the handle_dynamic function. Signed-off-by: Mark Wielaard <mark@klomp.org>
Diffstat (limited to 'tests')
0 files changed, 0 insertions, 0 deletions