| 147 | |
| 148 | _IRQL_requires_max_(APC_LEVEL) |
| 149 | BOOLEAN CheckUserMemoryReadable(__in_data_source(USER_MODE) PVOID UserAddress, SIZE_T Size) |
| 150 | { |
| 151 | __try |
| 152 | { |
| 153 | ProbeForRead(UserAddress, Size, 1); |
| 154 | return TRUE; |
| 155 | } |
| 156 | __except (EXCEPTION_EXECUTE_HANDLER) |
| 157 | { |
| 158 | return FALSE; |
| 159 | } |
| 160 | } |
| 161 | |
| 162 | _IRQL_requires_max_(APC_LEVEL) |
| 163 | BOOLEAN CheckProcessMemoryReadable(PEPROCESS Process, __in_data_source(USER_MODE) PVOID UserAddress, SIZE_T Size) |
no outgoing calls
no test coverage detected