]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
windres: buffer overflow
authorAlan Modra <amodra@gmail.com>
Wed, 7 May 2025 23:50:23 +0000 (09:20 +0930)
committerAlan Modra <amodra@gmail.com>
Wed, 7 May 2025 23:56:56 +0000 (09:26 +0930)
commit4aaf663ded55a029f02f83952c0e96e6b1dd4e8d
treea88ec2b12d94971da0f499df2f77b347f2ea6ff4
parent76fd7455e3eb479690fc23a70555db178d4d3a84
windres: buffer overflow

bin_to_res_menuexitems can be called with random data offsets (and thus
remaining lengths), confusing code that expects 4-byte aligned data.
Prevent an item length adjustment for alignment exceeding the
remaining length and then overflowing.
binutils/resbin.c