Re: [PATCH] segment: Fix dangling pointer

2024-04-03 Thread Mark Wielaard
Hi Maks, Adding the elfutils-devel list back to the CC because that is where patches are discussed. On Tue, Apr 02, 2024 at 10:45:59PM +0300, Максим Мишин wrote: > RASU JSC is a part of Rosatom, a company where one of the areas of work is > software development based on the Linux kernel. > That's

Re: [PATCH] segment: Fix dangling pointer

2024-03-28 Thread Mark Wielaard
Hi Maks, On Thu, Mar 28, 2024 at 11:29:22PM +0300, Maks Mishin wrote: > Pointer 'lookup_module' which is a field of the structure 'Dwfl' > freed at segment.c:88 is not overwritten, but it is usually overwritten > after free. But the very next statement is a return true; so old isn't in scope anym

[PATCH] segment: Fix dangling pointer

2024-03-28 Thread Maks Mishin
Pointer 'lookup_module' which is a field of the structure 'Dwfl' freed at segment.c:88 is not overwritten, but it is usually overwritten after free. Found by RASU JSC. Signed-off-by: Maks Mishin --- libdwfl/segment.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libdwfl/segment.c b/libdwf