]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
windres: buffer overflow in bin_to_res_toolbar
authorAlan Modra <amodra@gmail.com>
Mon, 14 Apr 2025 01:01:32 +0000 (10:31 +0930)
committerAlan Modra <amodra@gmail.com>
Mon, 14 Apr 2025 21:29:15 +0000 (06:59 +0930)
commit4846e543de9543bff001f58d6a47097e0edd588d
tree7752e1619ee89f71a1f1d58fbd5dfb4e21e14528
parenta4224b4ce14224ff81bd70f134254a088aca3931
windres: buffer overflow in bin_to_res_toolbar

oss-fuzz testcase manages to hit a buffer overflow.  Sanity check
by passing the buffer length to bin_to_res_toolbar and ensuring reads
don't go off the end of the buffer.
binutils/resbin.c