Re: [PATCH 1/4] libdwfl: Make sure mapped is always set in unzip

2024-06-25 Thread Mark Wielaard
Hi, On Sun, Jun 23, 2024 at 01:50:10AM +0200, Mark Wielaard wrote: > Found by GCC14 -Wanalyzer-null-argument. Aaron took a quick look on irc and said all 4 patches looked reasonable. So I pushed them all to main now. Cheers, Mark

[PATCH 1/4] libdwfl: Make sure mapped is always set in unzip

2024-06-22 Thread Mark Wielaard
Found by GCC14 -Wanalyzer-null-argument. When unzip is called with mapped NULL, but *_whole not NULL, *_whole contains the first part of the input. But we check against mapped to make sure the MAGIC bytes are there. This only worked because this code path was never taken, unzip is currently alway