This is the mail archive of the
binutils@sourceware.cygnus.com
mailing list for the binutils project.
[PATCH] crash in vms-misc.c with non VMS files
- To: binutils at sourceware dot cygnus dot com
- Subject: [PATCH] crash in vms-misc.c with non VMS files
- From: Szabolcs Szakacsits <szaka at f-secure dot com>
- Date: Tue, 16 May 2000 00:36:36 +0200 (MEST)
Hi,
When binutils compiled with --enable-targets=all automatic target
detection can crash or corrupt heap memory with non vms files. Here
is patch.
Szaka
--- vms-misc.c.orig Mon Jul 12 12:30:13 1999
+++ vms-misc.c Tue May 16 00:26:20 2000
@@ -328,6 +328,9 @@
test_len = 0;
test_start = 0;
break;
+ default:
+ bfd_set_error (bfd_error_wrong_format);
+ return -1;
}
/* skip odd alignment byte */