[PATCH] D26630: Fix heap-use-after-free coff::createPDB
Vitaly Buka via llvm-commits
llvm-commits at lists.llvm.org
Mon Nov 14 12:31:36 PST 2016
This revision was automatically updated to reflect the committed changes.
Closed by commit rL286880: Fix heap-use-after-free coff::createPDB (authored by vitalybuka).
Changed prior to commit:
https://reviews.llvm.org/D26630?vs=77863&id=77864#toc
Repository:
rL LLVM
https://reviews.llvm.org/D26630
Files:
lld/trunk/COFF/PDB.cpp
Index: lld/trunk/COFF/PDB.cpp
===================================================================
--- lld/trunk/COFF/PDB.cpp
+++ lld/trunk/COFF/PDB.cpp
@@ -82,9 +82,8 @@
IpiBuilder.setVersionHeader(pdb::PdbTpiV80);
// Add Section Contributions.
- ArrayRef<coff_section> InputSections = getInputSections(Symtab);
std::vector<pdb::SectionContrib> Contribs =
- pdb::DbiStreamBuilder::createSectionContribs(InputSections);
+ pdb::DbiStreamBuilder::createSectionContribs(getInputSections(Symtab));
DbiBuilder.setSectionContribs(Contribs);
// Add Section Map stream.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D26630.77864.patch
Type: text/x-patch
Size: 591 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20161114/8f94055f/attachment.bin>
More information about the llvm-commits
mailing list