You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/vmaware.hpp
+13-13Lines changed: 13 additions & 13 deletions
Original file line number
Diff line number
Diff line change
@@ -4472,9 +4472,9 @@ struct VM {
4472
4472
// run all the techniques
4473
4473
constu16 score = core::run_all(flags);
4474
4474
4475
-
brand_array_t active_brands = {};
4476
-
4475
+
brand_list_t active_brands = {};
4477
4476
brand_list_t brand_return = {};
4477
+
active_brands.reserve(MAX_BRANDS);
4478
4478
brand_return.reserve(MAX_BRANDS);
4479
4479
4480
4480
size_t active_count = 0;
@@ -4536,9 +4536,11 @@ struct VM {
4536
4536
return brand_return;
4537
4537
}
4538
4538
4539
-
// remove Hyper-V artifacts if found with other brands
4539
+
// remove Hyper-V artifacts and Unknown if found with other brands
4540
4540
if (active_count > 1) {
4541
4541
remove(brand_enum::HYPERV_ARTIFACT);
4542
+
remove(brand_enum::NULL_BRAND);
4543
+
remove(brand_enum::UNKNOWN);
4542
4544
}
4543
4545
4544
4546
// this bitset acts as an abstraction layer for the merging stage of this function.
@@ -4714,22 +4716,18 @@ struct VM {
4714
4716
case brand_enum::CONNECTIX: return VM::brands::CONNECTIX;
4715
4717
case brand_enum::NULL_BRAND: return VM::brands::NULL_BRAND; // do not modify placement of this, it's used as an anchor point to count the number of brands
0 commit comments