Re: [PATCH] libelf: fix DEREF_OF_NULL.RET in objdump.c

2025-02-07 Thread Mark Wielaard
Hi Anton, I changed the indention from using spaces to tabs and rewrote the subject line to better explain the change. Pushed as attached. Thanks, Mark >From 6c76ce7331e82a6fc6c2004e8e6ae51ca91f51d7 Mon Sep 17 00:00:00 2001 From: Anton Moryakov Date: Wed, 5 Feb 2025 00:50:23 +0300 Subject: [P

[PATCH] libelf: fix DEREF_OF_NULL.RET in objdump.c

2025-02-04 Thread Anton Moryakov
Report of the static analyzer: Pointer, returned from function 'elf_getarhdr' at objdump.c:314, may be NULL and is dereferenced at objdump.c:317. (CWE-476, CWE-690) Corrections explained: When processing archive elements, the code could dereference a NULL pointer if 'elf_getarhdr' returns NULL. Th

Re: [PATCH] libelf: fix DEREF_OF_NULL.RET in objdump.c

2025-02-03 Thread Mark Wielaard
Hi Anton, On Sat, Feb 01, 2025 at 02:21:24AM +0300, Anton Moryakov wrote: > Report of the static analyzer: > Pointer, returned from function 'elf_getarhdr' at > objdump.c:314, may be NULL and is dereferenced at > objdump.c:317. (CWE476, CWE690) Nice catch. > Corrections explained: > When process

[PATCH] libelf: fix DEREF_OF_NULL.RET in objdump.c

2025-01-31 Thread Anton Moryakov
Report of the static analyzer: Pointer, returned from function 'elf_getarhdr' at objdump.c:314, may be NULL and is dereferenced at objdump.c:317. (CWE476, CWE690) Corrections explained: When processing archive elements, the code could dereference a NULL pointer if 'elf_getarhdr' returns NULL. This