MCPcopy Create free account
hub / github.com/chromium/crashpad / ReadCString

Method ReadCString

util/process/process_memory.h:64–66  ·  view source on GitHub ↗

\brief Reads a `NUL`-terminated C string from the target process into a string in the current process. The length of the string need not be known ahead of time. This method will read contiguous memory until a `NUL` terminator is found. \param[in] address The address, in the target process’s address space, of the string to copy. \param[out] string The string read from the other process. \return

Source from the content-addressed store, hash-verified

62 //! failure, with a message logged. Failures can occur, for example, when
63 //! encountering unmapped or unreadable pages.
64 bool ReadCString(VMAddress address, std::string* string) const {
65 return ReadCStringInternal(address, false, 0, string);
66 }
67
68 //! \brief Reads a `NUL`-terminated C string from the target process into a
69 //! string in the current process.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected