diff options
author | Alan Modra <amodra@gmail.com> | 2020-01-14 09:39:47 +1030 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2020-01-14 11:02:28 +1030 |
commit | 8ab484c23b9f3533fcd942e95887383786331f06 (patch) | |
tree | 26427886f9b18b09a6197ac79be54323d598da8a /bfd/vms.h | |
parent | ca1eaac0edd9f5f6b5708dcfd04e5b8deb6527f8 (diff) | |
download | binutils-8ab484c23b9f3533fcd942e95887383786331f06.zip binutils-8ab484c23b9f3533fcd942e95887383786331f06.tar.gz binutils-8ab484c23b9f3533fcd942e95887383786331f06.tar.bz2 |
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.
Diffstat (limited to 'bfd/vms.h')
-rw-r--r-- | bfd/vms.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -98,7 +98,7 @@ struct evax_private_udata_struct /* vms-misc.c. */ -#define VMS_DEBUG 1 +#define VMS_DEBUG 0 #if VMS_DEBUG extern void _bfd_vms_debug (int, char *, ...) ATTRIBUTE_PRINTF_2; |