forked from OSchip/llvm-project
Return copy of XML dump
COFF/DriverUtils.cpp uses buffer after WindowsManifestMerger destroyed. llvm-svn: 312408
This commit is contained in:
parent
3d8e509fd7
commit
5c5b5a6253
|
@ -677,7 +677,7 @@ WindowsManifestMerger::WindowsManifestMergerImpl::getMergedManifest() {
|
||||||
Buffer.reset(Buff);
|
Buffer.reset(Buff);
|
||||||
}
|
}
|
||||||
|
|
||||||
return BufferSize ? MemoryBuffer::getMemBuffer(StringRef(
|
return BufferSize ? MemoryBuffer::getMemBufferCopy(StringRef(
|
||||||
FROM_XML_CHAR(Buffer.get()), (size_t)BufferSize))
|
FROM_XML_CHAR(Buffer.get()), (size_t)BufferSize))
|
||||||
: nullptr;
|
: nullptr;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue