ubsan: dwarf2.c:2232:7: runtime error: index 16 out of bounds
authorAlan Modra <amodra@gmail.com>
Wed, 12 Apr 2023 00:00:26 +0000 (09:30 +0930)
committerAlan Modra <amodra@gmail.com>
Wed, 12 Apr 2023 00:10:14 +0000 (09:40 +0930)
commit32011d23a879283d845993e9358f64a6e8aefa98
tree90f08a84b2aa2eb9625efb614e913d10226611e8
parentc10adfbb15a7e7d94f55cb012ed7c0ddef4156be
ubsan: dwarf2.c:2232:7: runtime error: index 16 out of bounds

Except it isn't out of bounds because space for a larger array has
been allocated.

* dwarf2.c (struct trie_leaf): Make ranges a C99 flexible array.
(alloc_trie_leaf, insert_arange_in_trie): Adjust sizing.
bfd/dwarf2.c