diff options
author | H.J. Lu <hjl@lucon.org> | 2001-01-23 21:50:36 +0000 |
---|---|---|
committer | H.J. Lu <hjl@lucon.org> | 2001-01-23 21:50:36 +0000 |
commit | 235c6625794d3e988f15525d29c5a2e362955d95 (patch) | |
tree | 1388b095ac773633e3932dfe99d41edc6676d231 /bfd | |
parent | cac599095d7e060ef124f081734878b1c87c29f3 (diff) | |
download | gdb-235c6625794d3e988f15525d29c5a2e362955d95.tar.gz |
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')
-rw-r--r-- | bfd/ChangeLog | 5 | ||||
-rw-r--r-- | bfd/vms-misc.c | 3 |
2 files changed, 7 insertions, 1 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog index a8e0b81f39b..77abcd48bc1 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -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. diff --git a/bfd/vms-misc.c b/bfd/vms-misc.c index 48029dd5cd2..89d39dbd319 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)) |