| commit | c893ce360a81bed57b9256f9d065541c2f8175c0 | [log] [tgz] |
|---|---|---|
| author | Alan Modra <amodra@gmail.com> | Mon Feb 24 11:52:03 2020 +1030 |
| committer | Alan Modra <amodra@gmail.com> | Mon Feb 24 12:35:05 2020 +1030 |
| tree | 043d6f5c61b8f144ffc063c8b68a6f343b2f461f | |
| parent | 23c4ec6f0279d424899dbdab26d05426aebeba80 [diff] |
vms buffer overflows and large memory allocation * vms-lib.c (struct carsym_mem): Add limit. (vms_add_index): Heed limit. (vms_traverse_index): Catch buffer overflows. Remove outdated fixme. (vms_lib_read_index): Set up limit. Catch 32-bit overflow. Always return actual number read. (_bfd_vms_lib_archive_p): Catch buffer overflows. Replace assertion with error exit.