No description
Find a file
Samuel Dainard 1d9c952ce7 readelf: Fix NULL pointer dereference in process_symtab with -D flag
When using eu-readelf with the -D (use_dynamic_segment) flag on malformed
ELF files, process_symtab can receive a NULL symstr_data pointer if
elf_getdata_rawchunk fails or the dynamic segment is malformed.

The function then dereferences symstr_data->d_buf without checking,
causing a segmentation fault.

Add NULL check before accessing symstr_data fields.

Fixes regression introduced in 0.194 where process_symtab was refactored
to handle dynamic segment symbol tables.

Signed-off-by: Samuel Dainard <sdainard@amazon.com>
2026-02-17 23:07:06 +01:00
.forgejo/workflows forge: Add a forgejo workflow to run various tests 2026-01-06 18:06:13 +01:00
backends elflint: Accept R_X86_64_DTPOFF64 in ET_REL files 2026-02-17 13:33:51 +01:00
config configure: Add -Wdeprecated-non-prototype and -Wfree-labels if available 2026-02-09 18:30:48 +01:00
debuginfod debuginfod: add filename to archive_exception log 2026-02-17 09:11:15 -05:00
doc PR33635: Introduce debuginfod --home-redirect and --home-html 2025-12-05 09:37:13 -05:00
lib libdw: Fix eu_search_tree TOCTOU bugs 2025-06-02 17:06:31 -04:00
libasm Replace usage of ar with stored library manifest files 2025-01-21 18:57:34 +01:00
libcpu Fix const-correctness issues 2025-11-25 20:12:59 -05:00
libdw libdw: Make sure to get .eh_frame_hdr with .eh_frame in getcfi_shdr 2025-12-10 00:38:20 +01:00
libdwelf Replace usage of ar with stored library manifest files 2025-01-21 18:57:34 +01:00
libdwfl Make __libdwfl_debuginfod_find_* functions thread safe 2026-02-03 10:31:48 -05:00
libdwfl_stacktrace PR33854: fix regression in dwflst_perf_sample_getframes 2026-02-05 10:18:55 -05:00
libebl elflint, readelf, support SHT_LLVM_LTO and SHT_LLVM_ADDRSIG 2026-02-17 13:36:10 +01:00
libelf gelf_getmove.c: Handle ELFCLASS32 and ELFCLASS64 separately 2026-01-09 10:36:01 -05:00
m4 Update minimum C compiler supported to C11 plus stdatomic.h 2025-01-11 00:19:28 +01:00
po po: Update Polish translation 2025-11-30 22:11:49 -05:00
src readelf: Fix NULL pointer dereference in process_symtab with -D flag 2026-02-17 23:07:06 +01:00
tests tests: Skip tests on non-ELF bitcode object files 2026-02-17 13:47:29 +01:00
.gitignore Replace usage of ar with stored library manifest files 2025-01-21 18:57:34 +01:00
.mailmap AUTHORS: Use generator script & git mailmap 2022-04-24 19:39:47 -04:00
AUTHORS AUTHORS: Use generator script & git mailmap 2022-04-24 19:39:47 -04:00
AUTHORS.sh AUTHORS: Use generator script & git mailmap 2022-04-24 19:39:47 -04:00
ChangeLog readelf: display dynamic symtab without section headers 2023-04-18 21:46:53 +02:00
CONDUCT Update code of conduct 2024-06-07 14:06:53 -04:00
configure.ac configure: Add -Wdeprecated-non-prototype and -Wfree-labels if available 2026-02-09 18:30:48 +01:00
CONTRIBUTING CONTRIBUTING: Add Policy on the Use of LLM-generated Content 2026-02-17 15:13:11 -05:00
COPYING Update name, license and contributor policy. 2012-06-05 23:12:05 +02:00
COPYING-GPLV2 Update name, license and contributor policy. 2012-06-05 23:12:05 +02:00
COPYING-LGPLV3 Update name, license and contributor policy. 2012-06-05 23:12:05 +02:00
GPG-KEY GPG-KEY: Add key for Aaron Merey 2024-03-01 18:10:33 +01:00
Makefile.am Makefile.am: Add errors to lcov ignore list 2025-08-12 10:39:58 -04:00
NEWS PR33635: Introduce debuginfod --home-redirect and --home-html 2025-12-05 09:37:13 -05:00
NOTES Fix spelling typos in NEWS, NOTES, TODO, and in comments of configure.ac 2020-12-12 18:06:28 +01:00
README SECURITY: new file 2023-07-03 10:25:40 -04:00
SECURITY SECURITY: new file 2023-07-03 10:25:40 -04:00
THANKS More correct info on contributors. 2009-01-10 18:17:09 -08:00
TODO Fix spelling typos in NEWS, NOTES, TODO, and in comments of configure.ac 2020-12-12 18:06:28 +01:00

The elfutils project provides libraries and tools for ELF files and DWARF data.

The project home is http://elfutils.org/

Releases are published at ftp://sourceware.org/pub/elfutils/
Which can also be found at https://sourceware.org/elfutils/ftp/

To build a release do: ./configure && make && make check
Please check the configure summary to make sure all recommended
features are enabled. There should be no failures after make check.

Please reports bugs at https://sourceware.org/bugzilla/

The current elfutils source code can be checked out with
git clone git://sourceware.org/git/elfutils.git

To build a git checkout do:
  autoreconf -i -f && \
  ./configure --enable-maintainer-mode && \
  make && make check

The developer mailinglist to send patches to is
elfutils-devel@sourceware.org.
https://sourceware.org/ml/elfutils-devel/

To subscribe send an email to elfutils-devel-subscribe@sourceware.org
Or use the form at https://sourceware.org/mailman/listinfo/elfutils-devel

See the CONTRIBUTING file for how to propose patches to the code.

See the NOTES files for some design decisions and notes.

See the SECURITY file for defining and handling security-sensitive bugs.