[PATCH] D67676: [lld][WebAssembly] Fix use after free of archive path

Phabricator via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 18 14:50:11 PDT 2019


This revision was not accepted when it landed; it landed in state "Needs Review".
This revision was automatically updated to reflect the committed changes.
Closed by commit rL372266: [lld][WebAssembly] Fix use after free of archive path (authored by sbc, committed by ).

Changed prior to commit:
  https://reviews.llvm.org/D67676?vs=220576&id=220755#toc

Repository:
  rL LLVM

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D67676/new/

https://reviews.llvm.org/D67676

Files:
  lld/trunk/wasm/InputFiles.h


Index: lld/trunk/wasm/InputFiles.h
===================================================================
--- lld/trunk/wasm/InputFiles.h
+++ lld/trunk/wasm/InputFiles.h
@@ -54,7 +54,7 @@
   Kind kind() const { return fileKind; }
 
   // An archive file name if this file is created from an archive.
-  StringRef archiveName;
+  std::string archiveName;
 
   ArrayRef<Symbol *> getSymbols() const { return symbols; }
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D67676.220755.patch
Type: text/x-patch
Size: 416 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190918/f07463f8/attachment.bin>


More information about the llvm-commits mailing list