]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
ubsan: alpha-vms: segv
authorAlan Modra <amodra@gmail.com>
Mon, 13 Jan 2020 23:09:47 +0000 (09:39 +1030)
committerAlan Modra <amodra@gmail.com>
Tue, 14 Jan 2020 00:32:28 +0000 (11:02 +1030)
commit8ab484c23b9f3533fcd942e95887383786331f06
tree26427886f9b18b09a6197ac79be54323d598da8a
parentca1eaac0edd9f5f6b5708dcfd04e5b8deb6527f8
ubsan: alpha-vms: segv

I thought the fuzzers were really going overboard by defining
VMS_DEBUG but that wasn't the case.  VMS_DEBUG is defined by
default.  Let's not do that, and fix the segv as well.

* vms.h (VMS_DEBUG): Define as 0.
* vms-alpha.c (image_write): Move debug output after bounds check.
Tidy bounds check.
(_bfd_vms_slurp_eihd): Warning fix.
(_bfd_vms_slurp_etir): Init variables to avoid bogus warnings.
bfd/ChangeLog
bfd/vms-alpha.c
bfd/vms.h