Skip to content

Commit

Permalink
review remark
Browse files Browse the repository at this point in the history
  • Loading branch information
RadWolfie committed Mar 16, 2024
1 parent 70d9aa2 commit 6edbb98
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/assertions/object_type.h
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,9 @@ static BOOL assert_object_header_type_ex(POBJECT_TYPE object_type,
GEN_CHECK_EX(type_object != NULL, TRUE, "type_object", func_line);
if (NT_SUCCESS(status)) {
POBJECT_HEADER event_object_header = OBJECT_TO_OBJECT_HEADER(type_object);
// NOTE: DefaultObject's relative offset or address (above 0x80000000) are private.
// Since they are private, we can only verify if the address is valid by call
// NOTE: DefaultObject's relative offset or address (either within kernel executable
// or allocated by ObCreateObject) is not exposed through kernel APIs.
// We can only verify if the absolute address is valid with a call to the
// MmIsAddressValid function.
BOOLEAN is_address_valid;
if ((LONG_PTR)object_type->DefaultObject >= 0) {
Expand Down

0 comments on commit 6edbb98

Please sign in to comment.