diff options
Diffstat (limited to 'bfd/oasys.c')
-rw-r--r-- | bfd/oasys.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bfd/oasys.c b/bfd/oasys.c index c68ce07..995d962 100644 --- a/bfd/oasys.c +++ b/bfd/oasys.c @@ -293,7 +293,8 @@ bfd *abfd; while (loop) { oasys_record_union_type record; oasys_read_record(abfd, &record); - + if (record.header.length < sizeof(record.header)) + return (bfd_target *)NULL; switch ((oasys_record_enum_type)(record.header.type)) { case oasys_record_is_header_enum: |