From: H.J. Lu Date: Tue, 23 Jan 2001 21:50:36 +0000 (+0000) Subject: 2001-01-23 H.J. Lu X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=0007625f8feb55101b057b611d495edf81c0259a;p=deliverable%2Fbinutils-gdb.git 2001-01-23 H.J. Lu * vms-misc.c (_bfd_vms_next_record): Return -1 if PRIV(vms_buf) is NULL or PRIV(vms_rec) is outside of the buffer. --- diff --git a/bfd/ChangeLog b/bfd/ChangeLog index a8e0b81f39..77abcd48bc 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2001-01-23 H.J. Lu + + * vms-misc.c (_bfd_vms_next_record): Return -1 if PRIV(vms_buf) + is NULL or PRIV(vms_rec) is outside of the buffer. + 2001-01-23 Kazu Hirata * coff64-rs6000.c: Fix formatting. diff --git a/bfd/vms-misc.c b/bfd/vms-misc.c index 48029dd5cd..89d39dbd31 100644 --- a/bfd/vms-misc.c +++ b/bfd/vms-misc.c @@ -455,7 +455,8 @@ _bfd_vms_next_record (abfd) return -1; } - if (!PRIV(vms_rec)) + if (!PRIV(vms_rec) || !PRIV(vms_buf) + || PRIV(vms_rec) >= (PRIV(vms_buf) + PRIV(buf_size))) return -1; if (PRIV(is_vax))