From 9d3d31f2c421b433e6041fa779595489ffe1a835 Mon Sep 17 00:00:00 2001 From: hasherezade Date: Fri, 6 Sep 2024 10:13:36 -0800 Subject: [PATCH] [BUGFIX] Exclude the current thread from the thread scan --- scanners/thread_scanner.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scanners/thread_scanner.cpp b/scanners/thread_scanner.cpp index ae5cd27c..f50cd830 100644 --- a/scanners/thread_scanner.cpp +++ b/scanners/thread_scanner.cpp @@ -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; }