[Lldb-commits] [PATCH] D152454: [lldb][test] LogTest: Fix stack overflow
Michael Buch via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Thu Jun 8 08:59:37 PDT 2023
Michael137 created this revision.
Herald added a project: All.
Michael137 requested review of this revision.
Herald added a project: LLDB.
Herald added a subscriber: lldb-commits.
The expected function name requires 18 bytes of storage.
Caught by the public ASAN buildbot
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D152454
Files:
lldb/unittests/Utility/LogTest.cpp
Index: lldb/unittests/Utility/LogTest.cpp
===================================================================
--- lldb/unittests/Utility/LogTest.cpp
+++ lldb/unittests/Utility/LogTest.cpp
@@ -309,7 +309,7 @@
Err));
llvm::StringRef Msg = logAndTakeOutputf("Hello World");
char File[12];
- char Function[17];
+ char Function[18];
sscanf(Msg.str().c_str(),
"%[^:]:%s Hello World", File,
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D152454.529623.patch
Type: text/x-patch
Size: 482 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20230608/dd35c5be/attachment-0001.bin>
More information about the lldb-commits
mailing list