aboutsummaryrefslogtreecommitdiff
path: root/bfd/oasys.c
diff options
context:
space:
mode:
authorSteve Chamberlain <steve@cygnus>1991-04-04 15:34:09 +0000
committerSteve Chamberlain <steve@cygnus>1991-04-04 15:34:09 +0000
commitf61d204a35104352c5268074fdc631ebbb6ae008 (patch)
treebb3ca3eed1c6e9b283257f4e4422aa0fbdbfbd7b /bfd/oasys.c
parent37a1fd96b752bd3252fa2552f74e8ea53133424c (diff)
downloadgdb-f61d204a35104352c5268074fdc631ebbb6ae008.zip
gdb-f61d204a35104352c5268074fdc631ebbb6ae008.tar.gz
gdb-f61d204a35104352c5268074fdc631ebbb6ae008.tar.bz2
*** empty log message ***
Diffstat (limited to 'bfd/oasys.c')
-rw-r--r--bfd/oasys.c3
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: