From 9c4c67a682f9d9b2cca183fcb9533bf709ffa723 Mon Sep 17 00:00:00 2001 From: Michael Buch Date: Thu, 8 Jun 2023 16:58:58 +0100 Subject: [PATCH] [lldb][test] LogTest: Fix stack overflow The expected function name requires 18 bytes of storage. Caught by the public ASAN buildbot Differential Revision: https://reviews.llvm.org/D152454 --- lldb/unittests/Utility/LogTest.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lldb/unittests/Utility/LogTest.cpp b/lldb/unittests/Utility/LogTest.cpp index d3c878d..1dac194 100644 --- a/lldb/unittests/Utility/LogTest.cpp +++ b/lldb/unittests/Utility/LogTest.cpp @@ -309,7 +309,7 @@ TEST_F(LogChannelEnabledTest, log_options) { 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, -- 2.7.4