Skip to content

Commit

Permalink
Check for null-ptr in rootkitmon (#1570)
Browse files Browse the repository at this point in the history
  • Loading branch information
tklengyel authored Dec 21, 2022
1 parent 663e836 commit 3f947e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/plugins/rootkitmon/rootkitmon.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -563,7 +563,7 @@ static void driver_visitor(drakvuf_t drakvuf, addr_t driver, void* ctx)

// Map 1 4KB page with PE header
void* module = nullptr;
if (VMI_SUCCESS != vmi_mmap_guest(vmi, &a_ctx, 1, &module))
if (VMI_SUCCESS != vmi_mmap_guest(vmi, &a_ctx, 1, &module) || !module )
{
PRINT_DEBUG("[ROOTKITMON] Failed to map guest VA 0x%lx\n", a_ctx.addr);
return;
Expand Down

0 comments on commit 3f947e2

Please sign in to comment.