Fix a potential illegal memory access when displaying corrupt DWARF information.
authorNick Clifton <nickc@redhat.com>
Tue, 11 Apr 2023 14:59:07 +0000 (15:59 +0100)
committerNick Clifton <nickc@redhat.com>
Tue, 11 Apr 2023 14:59:07 +0000 (15:59 +0100)
commit688fe114cd80e410dbed08064eaaedf5584d31cf
tree521e17da74703acaf082536426d3444ede7b9f0b
parent45f5fe468b23c92b571756ec72b6a9c7be034074
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.
binutils/ChangeLog
binutils/dwarf.c