mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-01 04:12:51 +00:00
MFC r279301: GNU nm: Avoid NULL dereference
bfd_dwarf2_find_line() calls find_line() with NULL functionname_ptr, which resulted in a crash on certain ELF objects. This change was implemented independently from upstream binutils, but I have checked that the crash does not happen there. Sponsored by: The FreeBSD Foundation
This commit is contained in:
parent
8605122db0
commit
f51809fde9
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/stable/10/; revision=279572
@ -2382,7 +2382,8 @@ find_line (bfd *abfd,
|
||||
else
|
||||
addr += section->vma;
|
||||
*filename_ptr = NULL;
|
||||
*functionname_ptr = NULL;
|
||||
if (!do_line)
|
||||
*functionname_ptr = NULL;
|
||||
*linenumber_ptr = 0;
|
||||
|
||||
if (! *pinfo)
|
||||
|
Loading…
Reference in New Issue
Block a user