summaryrefslogtreecommitdiffstats
path: root/libdw/cfi.h
diff options
context:
space:
mode:
authorMark Wielaard <[email protected]>2024-11-05 23:31:14 +0100
committerMark Wielaard <[email protected]>2024-11-07 16:29:59 +0100
commit8707194a9f2f0b13e53041b03ebfdbdbd2942e43 (patch)
treebb9b0319e418d7e6fd6e5a5409aca91b85a25ff9 /libdw/cfi.h
parente425a70469436c704e6c24dd4bc2abb8fb24b61d (diff)
libelf: Only fetch shdr once in elf_compress[_gnu]
Some compilers assume the second call to elf[32|64]_getshdr can fail and produce error: potential null pointer dereference. Just store the result of the first call and reuse (when not NULL). * libelf/elf_compress.c (elf_compress): Store getshdr result in a shdr union var. * libelf/elf_compress_gnu.c (): Likewise https://sourceware.org/bugzilla/show_bug.cgi?id=32311 Signed-off-by: Mark Wielaard <[email protected]>
Diffstat (limited to 'libdw/cfi.h')
0 files changed, 0 insertions, 0 deletions