llvm-project/lldb
Ashok Thirumurthi 6ac9d13e61 Provided a variant of ReadCStringFromMemory that supports null terminators of any character width.
This prevents unbounded reads (i.e. reads of GetMaximumSizeOfStringSummary() bytes)
from causing test failures (i.e. due to ptrace EIO or EFAULT on Linux).

Note that ReadCStringFromMemory is marked as deprecated because the loop that calls
ReadMemory does not continue until the string has been completely read.
The expected behavior is to read until until max_bytes or a null terminator.

Note: As discussed on lldb-dev, further testing will be performed with ReadStringFromMemory
before further changes are made for users of ReadCStringFromMemory.

Thanks to Enrico, Matt and Andy for their review feedback.

llvm-svn: 179857
2013-04-19 15:58:38 +00:00
..
docs Updated the code signing docs. 2013-03-29 17:53:55 +00:00
examples <rdar://problem/13477795> 2013-04-04 23:36:51 +00:00
include Provided a variant of ReadCStringFromMemory that supports null terminators of any character width. 2013-04-19 15:58:38 +00:00
lib Fix makefile build by linking needed library 'irreader' 2013-03-28 17:08:09 +00:00
lldb.xcodeproj Added a Materializer class that contains 2013-04-11 00:09:05 +00:00
lldb.xcworkspace Move the performance test cases into their own project. 2013-03-18 23:05:00 +00:00
resources Updated Apple LLDB version to lldb-300.99.0. Also 2013-03-07 22:29:06 +00:00
scripts After discussing with Chris Lattner, we require C++11, so lets get rid of the macros and just use C++11. 2013-04-18 22:45:39 +00:00
source Provided a variant of ReadCStringFromMemory that supports null terminators of any character width. 2013-04-19 15:58:38 +00:00
test Provided a variant of ReadCStringFromMemory that supports null terminators of any character width. 2013-04-19 15:58:38 +00:00
tools After discussing with Chris Lattner, we require C++11, so lets get rid of the macros and just use C++11. 2013-04-18 22:45:39 +00:00
utils Minor update to Vim frontend: simplify breakpoints display (and list unresolved breakpoints) 2013-02-12 00:31:40 +00:00
www Document how to get "info line" information from "image lookup -v". 2013-04-18 22:03:01 +00:00
.gitignore Remove "llvm" from list of things to ignore. This results in the 2012-03-03 06:43:59 +00:00
CMakeLists.txt Split Linux-specific and OS X specific stuff. Add include_directories 2013-04-19 00:19:04 +00:00
INSTALL.txt Update INSTALL.txt to mention LLDB builds on Linux with GCC or Clang. 2013-02-21 22:37:18 +00:00
LICENSE.TXT
Makefile Fix Linux i386 build 2013-03-07 00:48:53 +00:00