Fix a potential illegal memory access when displaying corrupt DWARF information.

PR 30312
  * dwarf.c (prealloc_cu_tu_list): Always allocate at least one entry.
This commit is contained in:
Nick Clifton
2023-04-11 15:59:07 +01:00
parent 45f5fe468b
commit 688fe114cd
2 changed files with 18 additions and 10 deletions
+4
View File
@@ -1,5 +1,9 @@
2023-04-11 Nick Clifton <nickc@redhat.com>
PR 30312
* dwarf.c (prealloc_cu_tu_list): Always allocate at least one
entry.
PR 30311
* readelf.c (uncompress_section_contents): Check for a
suspiciously large uncompressed size.