]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
Re: windres: don't exit so much on errors in read_coff_rsrc
authorAlan Modra <amodra@gmail.com>
Mon, 18 Aug 2025 23:45:22 +0000 (09:15 +0930)
committerAlan Modra <amodra@gmail.com>
Tue, 19 Aug 2025 00:01:06 +0000 (09:31 +0930)
commit74201a32082c061a3b966fa3189e97eefbd87c2b
treeefb4625e7684cadf7e3c731b0e4af0d1f66f365e
parentc022c513767753fa669ad8da5c0c6f12da4aa26a
Re: windres: don't exit so much on errors in read_coff_rsrc

oss-fuzz found that I missed some error paths in commit 9e68cae4fd.
This fix prevents reads of a NULL pointer in sort_resources.

* rescoff.c (read_coff_res_dir): Check return of recursive calls
and read_coff_data_entry calls.  Pass failures up the call chain.
binutils/rescoff.c