diff options
| author | Mark Wielaard <[email protected]> | 2024-11-05 23:31:14 +0100 |
|---|---|---|
| committer | Mark Wielaard <[email protected]> | 2024-11-07 16:29:59 +0100 |
| commit | 8707194a9f2f0b13e53041b03ebfdbdbd2942e43 (patch) | |
| tree | bb9b0319e418d7e6fd6e5a5409aca91b85a25ff9 /THANKS | |
| parent | e425a70469436c704e6c24dd4bc2abb8fb24b61d (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 'THANKS')
0 files changed, 0 insertions, 0 deletions
