asan: heap buffer overflow in dwarf2_directive_filename
authorAlan Modra <amodra@gmail.com>
Wed, 1 Jun 2022 08:14:41 +0000 (17:44 +0930)
committerAlan Modra <amodra@gmail.com>
Thu, 2 Jun 2022 06:24:14 +0000 (15:54 +0930)
commit6f87d3fd27417e5adb2aa6f106a614296425df57
treeb67ebd777ac291eb661c03e3e96c8015c6604c17
parentb3abcebcae6e648086147637bcba09c217c8bd9a
asan: heap buffer overflow in dwarf2_directive_filename

Seen with .file 4294967289 "xxx.c"

* dwarf2dbg.c (assign_file_to_slot): Catch more cases of integer
overflow.  Make param i an unsigned int.
gas/dwarf2dbg.c