1
0
mirror of https://github.com/hashcat/hashcat.git synced 2024-11-30 03:48:17 +00:00

CID 1402518 (#1 of 1): String not null terminated

This commit is contained in:
jsteube 2017-02-14 10:45:50 +01:00
parent 63b7321be2
commit 8ebd5188eb
2 changed files with 6 additions and 1 deletions

View File

@ -47,6 +47,7 @@
- Fixed clEnqueueNDRangeKernel(): CL_UNKNOWN_ERROR caused by an invalid work-item count during weak-hash-check
- Fixed nvapi datatype definition for NvS32 and NvU32
- Fixed WPA/WPA2 cracking in case eapol frame is >= 248 byte
- Fixed string not null terminated inside workaround for checking drm driver path
##
## Technical

View File

@ -77,7 +77,11 @@ static int ocl_check_dri (MAYBE_UNUSED hashcat_ctx_t *hashcat_ctx)
char buf[HCBUFSIZ_TINY];
if (readlink (drm_card0_driver_path, buf, HCBUFSIZ_TINY) == -1) return 0;
const ssize_t len = readlink (drm_card0_driver_path, buf, HCBUFSIZ_TINY - 1);
if (len == -1) return 0;
buf[len] = 0;
if (strstr (buf, "amdgpu") == NULL) return 0;