aboutsummaryrefslogtreecommitdiff
path: root/bfd/vms.h
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2020-01-14 09:39:47 +1030
committerAlan Modra <amodra@gmail.com>2020-01-14 11:02:28 +1030
commit8ab484c23b9f3533fcd942e95887383786331f06 (patch)
tree26427886f9b18b09a6197ac79be54323d598da8a /bfd/vms.h
parentca1eaac0edd9f5f6b5708dcfd04e5b8deb6527f8 (diff)
downloadfsf-binutils-gdb-8ab484c23b9f3533fcd942e95887383786331f06.zip
fsf-binutils-gdb-8ab484c23b9f3533fcd942e95887383786331f06.tar.gz
fsf-binutils-gdb-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.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/bfd/vms.h b/bfd/vms.h
index 2a4fb7e..88cf83e 100644
--- a/bfd/vms.h
+++ b/bfd/vms.h
@@ -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;