Crashpad
 
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Loading...
Searching...
No Matches
crashpad::ProcessMemorySanitized Class Referencefinal

Sanitized access to the memory of another process. More...

#include "util/process/process_memory_sanitized.h"

Inheritance diagram for crashpad::ProcessMemorySanitized:
[legend]
Collaboration diagram for crashpad::ProcessMemorySanitized:
[legend]

Public Member Functions

 ProcessMemorySanitized (const ProcessMemorySanitized &)=delete
 
ProcessMemorySanitizedoperator= (const ProcessMemorySanitized &)=delete
 
bool Initialize (const ProcessMemory *memory, const std::vector< std::pair< VMAddress, VMAddress > > *allowed_ranges)
 Initializes this object to read memory from the underlying memory object if the memory range is in allowed_ranges.
 
- Public Member Functions inherited from crashpad::ProcessMemory
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.
 

Detailed Description

Sanitized access to the memory of another process.

Member Function Documentation

◆ Initialize()

bool crashpad::ProcessMemorySanitized::Initialize ( const ProcessMemory * memory,
const std::vector< std::pair< VMAddress, VMAddress > > * allowed_ranges )

Initializes this object to read memory from the underlying memory object if the memory range is in allowed_ranges.

This method must be called successfully prior to calling any other method in this class.

Parameters
[in]memoryThe memory object to read memory from.
[in]allowed_rangesA list of allowed memory ranges.
Returns
true on success, false on failure with a message logged.

The documentation for this class was generated from the following files: