mirror of
https://github.com/RPCS3/llvm.git
synced 2025-02-13 06:34:24 +00:00
[dsymutil] Fix use-after-free when sys::path::append grows the buffer.
<rdar://problem/50117620> git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@359001 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
aab3c8c7b3
commit
17fed035fb
@ -328,7 +328,7 @@ static Expected<OutputLocation> getOutputFileName(llvm::StringRef InputFile) {
|
||||
return std::move(E);
|
||||
|
||||
llvm::sys::path::append(Path, "Contents", "Resources");
|
||||
StringRef ResourceDir = Path;
|
||||
std::string ResourceDir = Path;
|
||||
llvm::sys::path::append(Path, "DWARF", llvm::sys::path::filename(DwarfFile));
|
||||
return OutputLocation(Path.str(), ResourceDir.str());
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user