]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
ubsan: integer overflow in s_fill
authorAlan Modra <amodra@gmail.com>
Sun, 18 May 2025 10:10:34 +0000 (19:40 +0930)
committerAlan Modra <amodra@gmail.com>
Mon, 19 May 2025 13:09:51 +0000 (22:39 +0930)
commita20c9955779aa788f3b7433b8a9eddddbed9b1cb
treee0d97beaab7fc22ae9658e421075b6d3ae7a3f00
parentbe28a26aebc6537e6ce3544aeba6ec70828cf126
ubsan: integer overflow in s_fill

Silence ubsan warning.  We don't worry about wrap-around in most
places that adjust abs_section_offset, so don't fuss over an overflow
in the multiplication here.

* read.c (s_fill): Replace "long" vars with offsetT and valueT.
Avoid signed overflow calculating abs_section_offset.
gas/read.c