[Lldb-commits] [lldb] r355518 - [Reproducers] Don't use VLA in SBReproducer redirect

Jonas Devlieghere via lldb-commits lldb-commits at lists.llvm.org
Wed Mar 6 08:33:48 PST 2019


Author: jdevlieghere
Date: Wed Mar  6 08:33:48 2019
New Revision: 355518

URL: http://llvm.org/viewvc/llvm-project?rev=355518&view=rev
Log:
[Reproducers] Don't use VLA in SBReproducer redirect

This should unbreak the Windows bot.

Modified:
    lldb/trunk/source/API/SBReproducer.cpp

Modified: lldb/trunk/source/API/SBReproducer.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/API/SBReproducer.cpp?rev=355518&r1=355517&r2=355518&view=diff
==============================================================================
--- lldb/trunk/source/API/SBReproducer.cpp (original)
+++ lldb/trunk/source/API/SBReproducer.cpp Wed Mar  6 08:33:48 2019
@@ -37,7 +37,7 @@ static bool GetDefaultArchitectureRedire
                                            size_t arch_name_len) {
   // The function is writing to its argument. Without the redirect it would
   // write into the replay buffer.
-  char buffer[arch_name_len];
+  char buffer[1024];
   return SBDebugger::GetDefaultArchitecture(buffer, arch_name_len);
 }
 




More information about the lldb-commits mailing list