diff options
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)) |