[PATCH] D139457: Fix buffer-overflow in llvm-mt's notify_update feature.
Mitch Phillips via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Dec 6 13:46:18 PST 2022
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rG6f43255edb9e: Fix buffer-overflow in llvm-mt's notify_update feature. (authored by hctim).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D139457/new/
https://reviews.llvm.org/D139457
Files:
llvm/tools/llvm-mt/llvm-mt.cpp
Index: llvm/tools/llvm-mt/llvm-mt.cpp
===================================================================
--- llvm/tools/llvm-mt/llvm-mt.cpp
+++ llvm/tools/llvm-mt/llvm-mt.cpp
@@ -150,9 +150,9 @@
bool Same = false;
if (OutBuffOrErr) {
const std::unique_ptr<MemoryBuffer> &FileBuffer = *OutBuffOrErr;
- Same = std::equal(OutputBuffer->getBufferStart(),
- OutputBuffer->getBufferEnd(),
- FileBuffer->getBufferStart());
+ Same = std::equal(
+ OutputBuffer->getBufferStart(), OutputBuffer->getBufferEnd(),
+ FileBuffer->getBufferStart(), FileBuffer->getBufferEnd());
}
if (!Same) {
#if LLVM_ON_UNIX
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D139457.480611.patch
Type: text/x-patch
Size: 697 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20221206/4d8950ae/attachment.bin>
More information about the llvm-commits
mailing list