summaryrefslogtreecommitdiff
path: root/libelf/elf_rand.c
diff options
context:
space:
mode:
authorMark Wielaard <mark@klomp.org>2023-04-06 16:58:13 +0200
committerMark Wielaard <mark@klomp.org>2023-04-14 17:25:03 +0200
commitd8d1900ace46542e0fd4e0cec8af2324166109e4 (patch)
treec007d77bb2161299825ea1a6397c8d817f1f1416 /libelf/elf_rand.c
parent3daddabd5d619bc2316813a5676d9be34ad3f6ac (diff)
downloadelfutils-d8d1900ace46542e0fd4e0cec8af2324166109e4.tar.gz
readelf: Handle NULL shdr in section_name
In some error cases we want to show the section name but cannot because the section header is corrupt or NULL. Make sure the section_name always returns "???" in that case. * src/readelf.c (section_name): Check for shdr == NULL. Signed-off-by: Mark Wielaard <mark@klomp.org>
Diffstat (limited to 'libelf/elf_rand.c')
0 files changed, 0 insertions, 0 deletions