From: AntonMoryakov
- Added a check to ensure `arhdr` is not NULL before using it in `strcmp` to
avoid segmentation fault.
- This resolves the issue where the pointer returned from `elf_getarhdr` may be
NULL and causes a crash when dereferenced.
---
src/objdump.c | 3 ++-
1 file changed, 2 ins
From: AntonMoryakov
- Added a check to ensure `retval` is not NULL before using it in `strcmp` to
prevent a segmentation fault.
- This resolves the issue where `retval` could be NULL when passed to `strcmp`,
which could cause a crash.
---
libdwfl/dwfl_segment_report_module.c | 2 +-
1 file cha
From: AntonMoryakov
Fix a bug that caused a null pointer dereference in the `dwarf_ranges` function.
Added a check for NULL before dereferencing the pointer `d` to prevent potential
segmentation faults.
---
libdw/dwarf_ranges.c | 7 ---
1 file changed, 4 insertions(+), 3 deletions(-)
diff -
From: AntonMoryakov
fix: fixed null pointer inference error in process_file function
Fixed a bug that could cause the program to crash when processing files without
a suffix.
Added a NULL check for the suffix pointer before calling stpcpy().
---
src/elflint.c | 7 ++-
1 file changed, 6 ins