Fix PR23914.
authorEvgeniy Stepanov <eugeni.stepanov@gmail.com>
Mon, 22 Jun 2015 23:36:03 +0000 (23:36 +0000)
committerEvgeniy Stepanov <eugeni.stepanov@gmail.com>
Mon, 22 Jun 2015 23:36:03 +0000 (23:36 +0000)
commit845d1a6a171b1833008b57137c254d99ae149a7a
tree6012539ecbdbf4c147f2f548fe941f122b3585ce
parent3755f9f48cede35aea7ad909105ea84564108827
Fix PR23914.

r226830 moved the declaration of Buf to a nested scope, resulting
in a dangling reference (in StringRef Name), and a use-after-free.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@240357 91177308-0d34-0410-b5e6-96231b3b80d8
lib/MC/ELFObjectWriter.cpp
test/MC/ELF/symver-pr23914.s [new file with mode: 0644]