diff options
author | H.J. Lu <hjl@lucon.org> | 2000-06-14 18:10:10 +0000 |
---|---|---|
committer | H.J. Lu <hjl@lucon.org> | 2000-06-14 18:10:10 +0000 |
commit | 7e1182099067e73dbeef0bdae0c2123160dcf82d (patch) | |
tree | ee044859f409680007cb39dd510ceed4f6830978 /bfd | |
parent | ac1cc127c1899d5e3f5d1ea74bd70e28d006aad7 (diff) | |
download | gdb-7e1182099067e73dbeef0bdae0c2123160dcf82d.tar.gz |
2000-06-14 H.J. Lu <hjl@gnu.org>
* vms-misc.c (_bfd_vms_next_record): Return -1 if PRIV(vms_rec)
is NULL.
Diffstat (limited to 'bfd')
-rw-r--r-- | bfd/ChangeLog | 5 | ||||
-rw-r--r-- | bfd/vms-misc.c | 3 |
2 files changed, 8 insertions, 0 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 21d25301bb2..3f22cbdf8e4 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2000-06-14 H.J. Lu <hjl@gnu.org> + + * vms-misc.c (_bfd_vms_next_record): Return -1 if PRIV(vms_rec) + is NULL. + 2000-06-13 H.J. Lu <hjl@gnu.org> * configure: Regenerate. diff --git a/bfd/vms-misc.c b/bfd/vms-misc.c index 311192c8b91..c5893f30a98 100644 --- a/bfd/vms-misc.c +++ b/bfd/vms-misc.c @@ -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)); |