diff options
author | Alan Modra <amodra@gmail.com> | 2020-03-14 11:50:22 +1030 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2020-03-14 17:24:19 +1030 |
commit | 780f96aed2b4db1014e8fa2b50118676d8af0e46 (patch) | |
tree | 06cceab0c41b0978c51811e1c280733045ee1488 /binutils/elfcomm.h | |
parent | f761cb13a903da6a5a1b3f9a5cb984600124ac31 (diff) | |
download | gdb-780f96aed2b4db1014e8fa2b50118676d8af0e46.zip gdb-780f96aed2b4db1014e8fa2b50118676d8af0e46.tar.gz gdb-780f96aed2b4db1014e8fa2b50118676d8af0e46.tar.bz2 |
readelf large memory allocation
* elfcomm.h (setup_archive): Update prototype.
* elfcomm.c (setup_archive): Add file_size parameter and sanity
check longnames_size.
(setup_nested_archive): Get file size and pass to setup_archive.
* elfedit.c (process_archive): Likewise.
* readelf.c (process_archive): Pass filedata->file_size to
setup_archive.
Diffstat (limited to 'binutils/elfcomm.h')
-rw-r--r-- | binutils/elfcomm.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/binutils/elfcomm.h b/binutils/elfcomm.h index 9bf3c41..731d3db 100644 --- a/binutils/elfcomm.h +++ b/binutils/elfcomm.h @@ -74,7 +74,7 @@ extern char *adjust_relative_path (const char *, const char *, unsigned long); /* Read the symbol table and long-name table from an archive. */ extern int setup_archive (struct archive_info *, const char *, FILE *, - bfd_boolean, bfd_boolean); + bfd_size_type, bfd_boolean, bfd_boolean); /* Open and setup a nested archive, if not already open. */ extern int setup_nested_archive (struct archive_info *, const char *); |