]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
Re: resbin: don't pass NULL as printf %s arg
authorAlan Modra <amodra@gmail.com>
Sat, 2 Aug 2025 00:42:21 +0000 (10:12 +0930)
committerAlan Modra <amodra@gmail.com>
Sat, 2 Aug 2025 00:50:15 +0000 (10:20 +0930)
commit891d1654d7314fa520f708dbc5f1bf855d15bd40
tree6b683d0df40ad941a816b712e26a6aef5ed4ca48
parent56639a7e41164834abc5dccb2789b64df63b5692
Re: resbin: don't pass NULL as printf %s arg

Commit c6c8d0b82175 went completely the wrong way.  "key" needs to be
NULL as that reads a different type of data.

PR 33244
* resbin.c (get_version_header): Don't pass a NULL key on to
toosmall.
(bin_to_res_version): Restore NULL key cases.
binutils/resbin.c