Skip to content

Commit

Permalink
Fixing Illegal Indirection bug in SECURE mode
Browse files Browse the repository at this point in the history
  • Loading branch information
hacksysteam committed Sep 24, 2018
1 parent ade0578 commit b2382e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Driver/WriteNULL.c
Expand Up @@ -78,7 +78,7 @@ NTSTATUS TriggerWriteNULL(IN PVOID UserBuffer) {
// UserBuffer and address pointed by *(UserBuffer) resides in User mode by calling
// ProbeForRead()/ProbeForWrite() routine before performing the write operation
ProbeForRead(UserBuffer, sizeof(PVOID), (ULONG)__alignof(PVOID));
ProbeForWrite(*(UserBuffer), sizeof(PVOID), (ULONG)__alignof(PVOID));
ProbeForWrite(*(PVOID *)UserBuffer, sizeof(PVOID), (ULONG)__alignof(PVOID));

*(PVOID *)UserBuffer = NULL;
#else
Expand Down

0 comments on commit b2382e2

Please sign in to comment.