diff --git a/docs/changes.txt b/docs/changes.txt index cf588898a..79f9c2787 100644 --- a/docs/changes.txt +++ b/docs/changes.txt @@ -1,3 +1,14 @@ +* changes v4.0.0 -> xxx: + +## +## Bugs +## + +- Fixed a memory leak while parsing a wordlist +- Fixed compile of kernels on AMD systems on windows due to invalid detection of ROCm +- Fixed compile of sources using clang under MSYS2 +- Fixed overlapping memory segment copy in CPU rule engine if using a specific rule function + * changes v3.6.0 -> v4.0.0: ## diff --git a/src/opencl.c b/src/opencl.c index f9bf69490..aa3212d5d 100644 --- a/src/opencl.c +++ b/src/opencl.c @@ -3190,7 +3190,9 @@ int opencl_ctx_devices_init (hashcat_ctx_t *hashcat_ctx, const int comptime) device_param->pcie_device = amdtopo.pcie.device; device_param->pcie_function = amdtopo.pcie.function; - // check for AMD ROCm driver + #if defined (__linux__) + + // check for AMD ROCm driver (only available on linux) const char *t1 = strstr (device_param->driver_version, "(HSA,LC)"); const char *t2 = strstr (device_param->driver_version, "(PAL,LC)"); @@ -3207,6 +3209,12 @@ int opencl_ctx_devices_init (hashcat_ctx_t *hashcat_ctx, const int comptime) { device_param->is_rocm = true; } + + #else + + device_param->is_rocm = false; + + #endif } if ((device_param->platform_vendor_id == VENDOR_ID_NV) && (device_param->device_vendor_id == VENDOR_ID_NV))