Skip to content

Commit

Permalink
small comment fix
Browse files Browse the repository at this point in the history
  • Loading branch information
grzetzp committed Feb 18, 2025
1 parent 8c07d54 commit 6741078
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libdrakvuf/win.c
Original file line number Diff line number Diff line change
Expand Up @@ -485,7 +485,7 @@ bool win_get_object_type_index(drakvuf_t drakvuf, access_context_t* object_heade

// https://medium.com/@ashabdalhalim/a-light-on-windows-10s-object-header-typeindex-value-e8f907e7073a
// Due to security mitigations type_index no longer equals to index in ObTypeIndexTable array on win 10
// but calculated as following:
// but is calculated as following:
if (vmi_get_winver(drakvuf->vmi) == VMI_OS_WINDOWS_10)
{
*index = *index ^ ((object_header_addr >> 8) & 0xff) ^ drakvuf->ob_header_cookie;
Expand Down

0 comments on commit 6741078

Please sign in to comment.