Skip to content

Commit

Permalink
Correctly honour minimum match length
Browse files Browse the repository at this point in the history
  • Loading branch information
sjanusz-r7 committed Dec 5, 2023
1 parent 3835d5d commit 5c4ab4a
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -643,6 +643,13 @@ DWORD request_sys_process_memory_search(Remote* remote, Packet* packet)
dprintf("[MEM SEARCH] -- ! FOUND A REGEX MATCH ! --");
dprintf("[MEM SEARCH] Address: %p", match_address);

if (match_length < min_match_length)
{
dprintf("[MEM SEARCH] Match length was too short, skipping.");
current_buffer_offset += (result + match_length);
continue;
}

dprintf("[MEM SEARCH] Creating results group");

Packet* search_results = met_api->packet.create_group();
Expand Down

0 comments on commit 5c4ab4a

Please sign in to comment.