aboutsummaryrefslogtreecommitdiff
path: root/texinfo
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2023-02-15 07:51:00 +1030
committerAlan Modra <amodra@gmail.com>2023-02-15 13:05:28 +1030
commit72d225ef9cc7d475db188581da33b056df3191fd (patch)
tree033d54528bb39c234342c7527648f9f30a1d211c /texinfo
parent3cd0b4f2c03ddfce91343dd8409407aab3ebb47d (diff)
downloadgdb-72d225ef9cc7d475db188581da33b056df3191fd.zip
gdb-72d225ef9cc7d475db188581da33b056df3191fd.tar.gz
gdb-72d225ef9cc7d475db188581da33b056df3191fd.tar.bz2
binutils stabs type list
Fuzzers have found that specifying a large stab type number results in lots of memory being requested, as the list is extended with a 16 element array at a time until we reach the given stab type. It also takes a long time. Of course normal sane stab types use small positive integers, but it's not hard to modify the code to handle type numbers starting anyhere. * stabs.c (struct stab_types): Add base_index. (stab_find_slot): Simplify filenum check. Delete type number check. Don't allocate entire array from 0 to type number, allocate a sparse array.
Diffstat (limited to 'texinfo')
0 files changed, 0 insertions, 0 deletions