diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2001-01-23 21:50:36 +0000 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2001-01-23 21:50:36 +0000 |
commit | 0007625f8feb55101b057b611d495edf81c0259a (patch) | |
tree | 237298d2f0ba9b2756caf69f0c9760b6258d140d /bfd/vms-misc.c | |
parent | 3fde5a36df2955b5a443e8da6f30fdf3b3b2769e (diff) | |
download | gdb-0007625f8feb55101b057b611d495edf81c0259a.zip gdb-0007625f8feb55101b057b611d495edf81c0259a.tar.gz gdb-0007625f8feb55101b057b611d495edf81c0259a.tar.bz2 |
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.
Diffstat (limited to 'bfd/vms-misc.c')
-rw-r--r-- | bfd/vms-misc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bfd/vms-misc.c b/bfd/vms-misc.c index 48029dd..89d39db 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)) |