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.
This commit is contained in:
parent
3fde5a36df
commit
0007625f8f
2 changed files with 7 additions and 1 deletions
|
@ -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>
|
2001-01-23 Kazu Hirata <kazu@hxi.com>
|
||||||
|
|
||||||
* coff64-rs6000.c: Fix formatting.
|
* coff64-rs6000.c: Fix formatting.
|
||||||
|
|
|
@ -455,7 +455,8 @@ _bfd_vms_next_record (abfd)
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!PRIV(vms_rec))
|
if (!PRIV(vms_rec) || !PRIV(vms_buf)
|
||||||
|
|| PRIV(vms_rec) >= (PRIV(vms_buf) + PRIV(buf_size)))
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
if (PRIV(is_vax))
|
if (PRIV(is_vax))
|
||||||
|
|
Loading…
Reference in a new issue