diff options
author | Alan Modra <amodra@gmail.com> | 2025-05-14 14:48:33 +0930 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2025-05-14 21:55:11 +0930 |
commit | 714cd7b1b4758a4534f3647edbbc931311e43652 (patch) | |
tree | 134bffb1ac4cd11b35a27606119679e43627eee6 /gdb/python/python.c | |
parent | 3222beac6e51002edb20f2f05b4bfe769347244b (diff) | |
download | binutils-714cd7b1b4758a4534f3647edbbc931311e43652.zip binutils-714cd7b1b4758a4534f3647edbbc931311e43652.tar.gz binutils-714cd7b1b4758a4534f3647edbbc931311e43652.tar.bz2 |
gas .file sanity check
Currently we allow insane file numbers that cause gas to allocate up
to 4G of memory for a file array. Trim that a little to 1G (which
still allows insane file numbers up to 33554431), and tidy function
parameter types so that we only need one file number sanity check.
* dwarf2dbg.c (assign_file_to_slot): Take a valueT file number.
Reduce max files array size.
(allocate_filename_to_slot): Take a valueT file number.
(dwarf2_directive_filename): Don't duplicate file number
sanity check here.
Diffstat (limited to 'gdb/python/python.c')
0 files changed, 0 insertions, 0 deletions