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

Method ReadCStringSizeLimited

util/process/process_memory.h:81–85  ·  view source on GitHub ↗

\brief Reads a `NUL`-terminated C string from the target process into a string in the current process. \param[in] address The address, in the target process’s address space, of the string to copy. \param[in] size The maximum number of bytes to read. The string is required to be `NUL`-terminated within this many bytes. \param[out] string The string read from the other process. \return `true` on s

Source from the content-addressed store, hash-verified

79 //! a `NUL` terminator is not found within \a size bytes, or when
80 //! encountering unmapped or unreadable pages.
81 bool ReadCStringSizeLimited(VMAddress address,
82 VMSize size,
83 std::string* string) const {
84 return ReadCStringInternal(address, true, size, string);
85 }
86
87 virtual ~ProcessMemory() = default;
88

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected