From e40ef12bfad0108024d7d3979565096843bb29a7 Mon Sep 17 00:00:00 2001 From: Sam Clegg Date: Wed, 18 Sep 2019 21:51:03 +0000 Subject: [PATCH] [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 llvm-svn: 372266 --- lld/wasm/InputFiles.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lld/wasm/InputFiles.h b/lld/wasm/InputFiles.h index 2b25906..4a445a7 100644 --- a/lld/wasm/InputFiles.h +++ b/lld/wasm/InputFiles.h @@ -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 getSymbols() const { return symbols; } -- 2.7.4