This is the mail archive of the binutils@sourceware.cygnus.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

[PATCH] crash in vms-misc.c with non VMS files



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  */



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]