Re: [PATCH] libdw: fix DEREF_AFTER_NULL.EX in dwarf_ranges.c

2025-02-03 Thread Mark Wielaard
Hi Anton, On Sat, Feb 01, 2025 at 01:56:34AM +0300, Anton Moryakov wrote: > Report of the static analyzer: > After having been compared to a NULL value at > dwarf_ranges.c:492, pointer 'd' is dereferenced at > dwarf_ranges.c:531. (CWE476) But there is a lot of code between those points. On line

[PATCH] libdw: fix DEREF_AFTER_NULL.EX in dwarf_ranges.c

2025-01-31 Thread Anton Moryakov
Report of the static analyzer: After having been compared to a NULL value at dwarf_ranges.c:492, pointer 'd' is dereferenced at dwarf_ranges.c:531. (CWE476) Corrections explained: When processing a DIE with missing or invalid section data, the code could dereference a NULL pointer, leading to unde