Fix attempt to free non-allocated pointer when parsing .debug_sup sections.
authorNick Clifton <nickc@redhat.com>
Fri, 30 Apr 2021 11:28:39 +0000 (12:28 +0100)
committerNick Clifton <nickc@redhat.com>
Fri, 30 Apr 2021 11:28:39 +0000 (12:28 +0100)
commitbfbfa6e7f481aa120aa24f8544c45c685aef3971
tree25954f65996e6265633ec0f1b6f003583909a264
parentbceb87ef4da7948eb9f39584fb5b4a62f9ed4846
Fix attempt to free non-allocated pointer when parsing .debug_sup sections.

PR 27796
* dwarf.c (load_debug_sup_file): Allocate memory for filename in
.debug_sup section.
binutils/ChangeLog
binutils/dwarf.c