]> CyberLeo.Net >> Repos - FreeBSD/stable/9.git/commit
MFC r279301: GNU nm: Avoid NULL dereference
authoremaste <emaste@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Fri, 24 Apr 2015 15:36:58 +0000 (15:36 +0000)
committeremaste <emaste@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Fri, 24 Apr 2015 15:36:58 +0000 (15:36 +0000)
commitc16cc275104c58b40480bc08b9ee611659679a10
treeb4b912c82bdbc56598c0d51db0c1155d35ea4b7b
parent349ecaba2ba64b9d126a0b604c9fc3b9a771c2db
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

git-svn-id: svn://svn.freebsd.org/base/stable/9@281935 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
contrib/binutils/bfd/dwarf2.c