MCPcopy Create free account
hub / github.com/HoShiMin/Kernel-Bridge / CheckUserMemoryReadable

Function CheckUserMemoryReadable

Kernel-Bridge/API/MemoryUtils.cpp:194–201  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

192
193 _IRQL_requires_max_(APC_LEVEL)
194 BOOLEAN CheckUserMemoryReadable(__in_data_source(USER_MODE) PVOID UserAddress, SIZE_T Size) {
195 __try {
196 ProbeForRead(UserAddress, Size, 1);
197 return TRUE;
198 } __except (EXCEPTION_EXECUTE_HANDLER) {
199 return FALSE;
200 }
201 }
202
203 _IRQL_requires_max_(APC_LEVEL)
204 BOOLEAN CheckProcessMemoryReadable(PEPROCESS Process, __in_data_source(USER_MODE) PVOID UserAddress, SIZE_T Size) {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected