diff options
Diffstat (limited to 'bfd/archive.c')
-rw-r--r-- | bfd/archive.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bfd/archive.c b/bfd/archive.c index dc5f76c..cc4c52f 100644 --- a/bfd/archive.c +++ b/bfd/archive.c @@ -903,7 +903,8 @@ do_slurp_bsd_armap (bfd *abfd) parsed_size = mapdata->parsed_size; free (mapdata); /* PR 17512: file: 883ff754. */ - if (parsed_size == 0) + /* PR 17512: file: 0458885f. */ + if (parsed_size < 4) return FALSE; raw_armap = (bfd_byte *) bfd_zalloc (abfd, parsed_size); |