This is the mail archive of the
binutils@sourceware.cygnus.com
mailing list for the binutils project.
A patch for vms-misc.c
- To: binutils at sourceware dot cygnus dot com
- Subject: A patch for vms-misc.c
- From: "H . J . Lu" <hjl at valinux dot com>
- Date: Wed, 14 Jun 2000 08:20:45 -0700
I got a core dump when I enabled all targets and did
# objdump -d foo.o
where foo.o is a coff-i386 file.
--
H.J. Lu (hjl@gnu.org)
--
2000-06-14 H.J. Lu <hjl@gnu.org>
* vms-misc.c (_bfd_vms_next_record): Return -1 if PRIV(vms_rec)
is NULL.
Index: vms-misc.c
===================================================================
RCS file: /work/cvs/gnu/binutils/bfd/vms-misc.c,v
retrieving revision 1.1.1.3
diff -u -p -r1.1.1.3 vms-misc.c
--- vms-misc.c 1999/07/17 20:52:33 1.1.1.3
+++ vms-misc.c 2000/06/14 14:59:44
@@ -459,6 +459,9 @@ _bfd_vms_next_record (abfd)
return -1;
}
+ if (!PRIV(vms_rec))
+ return -1;
+
if (PRIV(is_vax))
{
PRIV(rec_type) = *(PRIV(vms_rec));