From 3e822e97b9195381df98cdb98a3810a63a882fdc Mon Sep 17 00:00:00 2001 From: philsmd Date: Thu, 2 Jul 2020 17:39:22 +0200 Subject: [PATCH] fixes #2460: better alias detection esp. for macOS --- docs/changes.txt | 1 + src/backend.c | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/docs/changes.txt b/docs/changes.txt index b02a32f55..edd586c6c 100644 --- a/docs/changes.txt +++ b/docs/changes.txt @@ -11,6 +11,7 @@ ## Bugs ## +- Fixed alias detection with additional processor core count check - Fixed maximum password length in modules of hash-modes 600, 7800, 7801 and 9900 - Fixed uninitialized value in bitsliced DES kernel (BF mode only) leading to false negatives diff --git a/src/backend.c b/src/backend.c index 7f79879f6..5237ec04c 100644 --- a/src/backend.c +++ b/src/backend.c @@ -47,6 +47,10 @@ static bool is_same_device (const hc_device_param_t *src, const hc_device_param_ if (src->opencl_device_type != dst->opencl_device_type) return false; + // macOS still can't distinguish the devices by PCIe bus: + + if (src->device_processors != dst->device_processors) return false; + return true; }