[lld] r372266 - [lld][WebAssembly] Fix use after free of archive path

Sam Clegg via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 18 14:51:04 PDT 2019


Author: sbc
Date: Wed Sep 18 14:51:03 2019
New Revision: 372266

URL: http://llvm.org/viewvc/llvm-project?rev=372266&view=rev
Log:
[lld][WebAssembly] Fix use after free of archive path

This was fixed in the ELF backend in https://reviews.llvm.org/D34554.

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

Modified:
    lld/trunk/wasm/InputFiles.h

Modified: lld/trunk/wasm/InputFiles.h
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/wasm/InputFiles.h?rev=372266&r1=372265&r2=372266&view=diff
==============================================================================
--- lld/trunk/wasm/InputFiles.h (original)
+++ lld/trunk/wasm/InputFiles.h Wed Sep 18 14:51:03 2019
@@ -54,7 +54,7 @@ public:
   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; }
 




More information about the llvm-commits mailing list