]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
PR 33385 DST handling
authorAlan Modra <amodra@gmail.com>
Sun, 7 Sep 2025 22:56:43 +0000 (08:26 +0930)
committerAlan Modra <amodra@gmail.com>
Mon, 8 Sep 2025 12:47:46 +0000 (22:17 +0930)
commita029db9c425c7b6969c1ba67176bae99c2516dca
treef661908624517fbc54e31afd2e2704059cd64cb6
parent8dc1c6a82cbe0296323c89fa65b9669d119ee76c
PR 33385 DST handling

Commit 816995444667, a fix for a fuzzer testcase resulting in a buffer
overflow, broke reading of DST.  DST is a special case where a first
pass over the section just sizes it.
Commit a3c0896d80d2, another buffer overflow fix, wrongly removed a
line incrementing DST record length.

* vms-alpha.c (image_write): Don't do bounds check for
sections in memory without contents.
(evax_bfd_print_dst): Add one to length.
bfd/vms-alpha.c