Skip to content

Commit

Permalink
[BUGFIX] Exclude the current thread from the thread scan
Browse files Browse the repository at this point in the history
  • Loading branch information
hasherezade committed Sep 6, 2024
1 parent 52d8556 commit 9d3d31f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions scanners/thread_scanner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -396,6 +396,9 @@ bool pesieve::ThreadScanner::reportSuspiciousAddr(ThreadScanReport* my_report, U
// if extended info given, allow to filter out from the scan basing on the thread state and conditions
bool should_scan_context(const util::thread_info& info)
{
if (GetCurrentThreadId() == info.tid) {
return false; // don't scan the current thread
}
if (!info.is_extended) {
return true;
}
Expand Down

0 comments on commit 9d3d31f

Please sign in to comment.