2001-01-23 H.J. Lu <hjl@gnu.org>
authorH.J. Lu <hjl.tools@gmail.com>
Tue, 23 Jan 2001 21:50:36 +0000 (21:50 +0000)
committerH.J. Lu <hjl.tools@gmail.com>
Tue, 23 Jan 2001 21:50:36 +0000 (21:50 +0000)
* vms-misc.c (_bfd_vms_next_record): Return -1 if PRIV(vms_buf)
is NULL or PRIV(vms_rec) is outside of the buffer.

bfd/ChangeLog
bfd/vms-misc.c

index a8e0b81f39bc005446f31c6efc38bf0eba3ab56d..77abcd48bc1d266644d6b35b8fed7b7e600ddbe1 100644 (file)
@@ -1,3 +1,8 @@
+2001-01-23  H.J. Lu  <hjl@gnu.org>
+
+       * 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  <kazu@hxi.com>
 
        * coff64-rs6000.c: Fix formatting.
index 48029dd5cd246bc30785ec3e52ae37e010fd2fb8..89d39dbd31967d297181212295204c35845c0915 100644 (file)
@@ -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))
This page took 0.028117 seconds and 4 git commands to generate.