[Lldb-commits] [lldb] r157087 - /lldb/trunk/source/Target/Process.cpp

Greg Clayton gclayton at apple.com
Fri May 18 17:18:00 PDT 2012


Author: gclayton
Date: Fri May 18 19:18:00 2012
New Revision: 157087

URL: http://llvm.org/viewvc/llvm-project?rev=157087&view=rev
Log:
Forgot to bump the local string buffer up in size after debugging to make sure long strings would be correctly read when the buffer is too small for the string.


Modified:
    lldb/trunk/source/Target/Process.cpp

Modified: lldb/trunk/source/Target/Process.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Target/Process.cpp?rev=157087&r1=157086&r2=157087&view=diff
==============================================================================
--- lldb/trunk/source/Target/Process.cpp (original)
+++ lldb/trunk/source/Target/Process.cpp Fri May 18 19:18:00 2012
@@ -1963,7 +1963,7 @@
 size_t
 Process::ReadCStringFromMemory (addr_t addr, std::string &out_str, Error &error)
 {
-    char buf[32];
+    char buf[256];
     out_str.clear();
     addr_t curr_addr = addr;
     while (1)





More information about the lldb-commits mailing list