]> git.ipfire.org Git - thirdparty/elfutils.git/commit
unstrip: Check symtab and strtab sections have data before use.
authorMark Wielaard <mark@klomp.org>
Tue, 29 Apr 2025 22:22:59 +0000 (00:22 +0200)
committerMark Wielaard <mark@klomp.org>
Tue, 29 Apr 2025 22:22:59 +0000 (00:22 +0200)
commit50586ba4a99c06674962fe3bdd685088ab6808e1
treeb8869125f1470e43e20bedcd63e526d45221a059
parent56e7a862d82e646bae79706343afa5f7800e2be1
unstrip: Check symtab and strtab sections have data before use.

* src/unstrip.c (copy_elided_sections): Check elf_getdata result
for symtab and strtab sections.

Suggested-by: Anton Moryakov <ant.v.moryakov@gmail.com>
Signed-off-by: Mark Wielaard <mark@klomp.org>
src/unstrip.c