Med Ismail Bennani
e6cac17b56
[lldb] Extend SWIG SBProcess interface with WriteMemoryAsCString method
...
This patch tries to address an interoperability issue when writing
python string into the process memory.
Since the python string is not null-terminated, it would still be
written to memory however, when trying to read it again with
`SBProcess::ReadCStringFromMemory`, the memory read would fail, since
the read string doens't contain a null-terminator, and therefore is not
a valid C string.
To address that, this patch extends the `SBProcess` SWIG interface to
expose a new `WriteMemoryAsCString` method that is only exposed to the
SWIG target language. That method checks that the buffer to write is
null-terminated and otherwise, it appends a null byte at the end of it.
Signed-off-by: Med Ismail Bennani <medismail.bennani@gmail.com>
2023-03-03 19:33:01 -08:00
..
2023-02-16 11:18:04 -08:00
2023-02-16 11:18:04 -08:00
2023-02-16 11:18:04 -08:00
2023-02-16 11:18:04 -08:00
2023-02-16 11:18:04 -08:00
2023-02-16 11:18:04 -08:00
2023-02-16 11:18:04 -08:00
2023-02-16 11:18:04 -08:00
2023-02-16 11:18:04 -08:00
2023-02-16 11:18:04 -08:00
2023-02-16 11:18:04 -08:00
2023-02-16 11:18:04 -08:00
2023-02-16 11:18:04 -08:00
2023-02-16 11:18:04 -08:00
2023-02-16 11:18:04 -08:00
2023-02-16 11:18:04 -08:00
2023-02-16 11:18:04 -08:00
2023-02-16 11:18:04 -08:00
2023-02-16 11:18:04 -08:00
2023-02-16 11:18:04 -08:00
2023-02-16 11:18:04 -08:00
2023-02-16 11:18:04 -08:00
2023-02-16 11:18:04 -08:00
2023-02-16 11:18:04 -08:00
2023-02-16 11:18:04 -08:00
2023-02-16 11:18:04 -08:00
2023-02-16 11:18:04 -08:00
2023-02-16 11:18:04 -08:00
2023-02-16 11:18:04 -08:00
2023-02-16 11:18:04 -08:00
2023-02-16 11:18:04 -08:00
2023-02-16 11:18:04 -08:00
2023-02-16 11:18:04 -08:00
2023-02-16 11:18:04 -08:00
2023-02-16 11:18:04 -08:00
2023-02-16 11:18:04 -08:00
2023-02-16 11:18:04 -08:00
2023-02-16 11:18:04 -08:00
2023-02-16 11:18:04 -08:00
2023-02-16 11:18:04 -08:00
2023-02-16 11:18:04 -08:00
2023-02-16 11:18:04 -08:00
2023-02-16 11:18:04 -08:00
2023-02-16 11:18:04 -08:00
2023-02-16 11:18:04 -08:00
2023-02-16 11:18:04 -08:00
2023-02-16 11:18:04 -08:00
2023-02-16 11:18:04 -08:00
2023-02-16 11:18:04 -08:00
2023-02-16 11:18:04 -08:00
2023-02-16 11:18:04 -08:00
2023-02-16 11:18:04 -08:00
2023-02-16 11:18:04 -08:00
2023-02-16 11:18:04 -08:00
2023-02-16 11:18:04 -08:00
2023-02-16 11:18:04 -08:00
2023-02-16 11:18:04 -08:00
2023-02-16 11:18:04 -08:00
2023-02-16 11:18:04 -08:00
2023-02-16 11:18:04 -08:00
2023-03-03 19:33:01 -08:00
2023-02-16 11:18:04 -08:00
2023-02-16 11:18:04 -08:00
2023-02-16 11:18:04 -08:00
2023-02-16 11:18:04 -08:00
2023-02-16 11:18:04 -08:00
2023-02-16 11:18:04 -08:00
2023-02-16 11:18:04 -08:00
2023-02-16 11:18:04 -08:00
2023-02-16 11:18:04 -08:00
2023-02-16 11:18:04 -08:00
2023-02-16 11:18:04 -08:00
2023-02-16 11:18:04 -08:00
2023-02-16 11:18:04 -08:00
2023-02-16 11:18:04 -08:00
2023-02-16 11:18:04 -08:00
2023-02-16 11:18:04 -08:00
2023-02-16 11:18:04 -08:00
2023-02-16 11:18:04 -08:00
2023-02-16 11:18:04 -08:00
2023-02-16 11:18:04 -08:00
2023-02-16 11:18:04 -08:00
2023-02-16 11:18:04 -08:00
2023-02-16 11:18:04 -08:00
2023-02-16 11:18:04 -08:00
2023-02-16 11:18:04 -08:00
2023-02-16 11:18:04 -08:00
2023-02-16 11:18:04 -08:00
2023-02-16 11:18:04 -08:00
2023-02-16 11:18:04 -08:00
2023-02-16 11:18:04 -08:00
2023-02-16 11:18:04 -08:00
2023-02-16 11:18:04 -08:00
2023-02-16 11:18:04 -08:00
2023-02-16 11:18:04 -08:00
2023-02-16 11:18:04 -08:00
2023-02-16 11:18:04 -08:00
2023-02-16 11:18:04 -08:00
2023-02-16 11:18:04 -08:00
2023-02-16 11:18:04 -08:00
2023-02-16 11:18:04 -08:00
2023-02-16 11:18:04 -08:00
2023-02-16 11:18:04 -08:00
2023-02-16 11:18:04 -08:00
2023-02-16 11:18:04 -08:00
2023-03-02 14:36:37 -08:00
2023-02-16 11:18:04 -08:00
2023-02-16 11:18:04 -08:00
2023-02-16 11:18:04 -08:00
2023-02-16 11:18:04 -08:00
2023-03-01 11:15:05 -08:00
2023-02-16 11:18:04 -08:00