[PATCH] objdump.c: potential NULL pointer dereference in handle_ar

2024-10-23 Thread ant . v . moryakov
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

[PATCH] dwfl_segment_report_module.c: Fix potential NULL pointer dereference in handle_file_note

2024-10-23 Thread ant . v . moryakov
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

[PATCH] dwarf_ranges.c: Prevent null pointer dereference in dwarf_ranges

2024-10-23 Thread ant . v . moryakov
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 -

[PATCH] elfint.c: Fix NULL pointer dereference issue in process_file function

2024-10-23 Thread ant . v . moryakov
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