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

2024-10-23 Thread Mark Wielaard
Hi Anton, On Wed, 2024-10-23 at 14:14 +0300, ant.v.morya...@gmail.com wrote: > 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 NU

[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