llvm-project/lldb/test/lang/cpp/char1632_t
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
..
.categories
Makefile Replace all "-gdwarf-2" with "-g" to use the compiler defaults. 2013-02-28 18:47:39 +00:00
TestChar1632T.py Provided a variant of ReadCStringFromMemory that supports null terminators of any character width. 2013-04-19 15:58:38 +00:00
main.cpp