|
|
| FakeProcessMemory (const uint8_t *data, size_t size, VMAddress fake_base) |
| |
| ssize_t | ReadUpTo (VMAddress address, size_t size, void *buffer) const override |
| | Copies memory from the target process into a caller-provided buffer in the current process, up to a maximum number of bytes.
|
| |
| bool | Read (VMAddress address, VMSize size, void *buffer) const |
| | Copies memory from the target process into a caller-provided buffer in the current process.
|
| |
| bool | ReadCString (VMAddress address, std::string *string) const |
| | Reads a NUL-terminated C string from the target process into a string in the current process.
|
| |
| bool | ReadCStringSizeLimited (VMAddress address, VMSize size, std::string *string) const |
| | Reads a NUL-terminated C string from the target process into a string in the current process.
|
| |
◆ ReadUpTo()
| ssize_t FakeProcessMemory::ReadUpTo |
( |
VMAddress | address, |
|
|
size_t | size, |
|
|
void * | buffer ) const |
|
inlineoverridevirtual |
Copies memory from the target process into a caller-provided buffer in the current process, up to a maximum number of bytes.
- Parameters
-
| [in] | address | The address, in the target process' address space, of the memory region to copy. |
| [in] | size | The maximum size, in bytes, of the memory region to copy. buffer must be at least this size. |
| [out] | buffer | The buffer into which the contents of the other process' memory will be copied. |
- Returns
- the number of bytes copied, 0 if there is no more data to read, or -1 on failure with a message logged.
Implements crashpad::ProcessMemory.
The documentation for this class was generated from the following file:
- snapshot/elf/elf_image_reader_fuzzer.cc