[DWARF] Use deque in place of SmallVector to fix use-after-free issue
authorFangrui Song <maskray@google.com>
Mon, 23 Jul 2018 23:27:45 +0000 (23:27 +0000)
committerFangrui Song <maskray@google.com>
Mon, 23 Jul 2018 23:27:45 +0000 (23:27 +0000)
commit5bad9d835a58a42c481d565c3d974ab3a9655e8c
treed011dab1ec29a1b0c005c27ba0a782b0dde702aa
parent8e8a652c2f77d03c6ee9b7a12190f13eeaf60e05
[DWARF] Use deque in place of SmallVector to fix use-after-free issue

Summary: SmallVector's elements are moved when resizing and cause use-after-free.

Reviewers: probinson, dblaikie

Subscribers: JDevlieghere, llvm-commits

Differential Revision: https://reviews.llvm.org/D49702

llvm-svn: 337772
llvm/lib/DebugInfo/DWARF/DWARFContext.cpp