]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC r279301: GNU nm: Avoid NULL dereference
authoremaste <emaste@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Wed, 4 Mar 2015 01:10:09 +0000 (01:10 +0000)
committeremaste <emaste@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Wed, 4 Mar 2015 01:10:09 +0000 (01:10 +0000)
commitfa9d5931c356cfce9ec04391e24df0a13769449f
treec82575bcb831b97711d64d1eab8ba05dc0b6731c
parent8e24c74bf97807ca46c044770e01d60ce591069a
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/10@279572 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
contrib/binutils/bfd/dwarf2.c