mirror of
https://github.com/hashcat/hashcat.git
synced 2025-02-27 23:02:22 +00:00
CID 1402518 (#1 of 1): String not null terminated
This commit is contained in:
parent
63b7321be2
commit
8ebd5188eb
@ -47,6 +47,7 @@
|
|||||||
- Fixed clEnqueueNDRangeKernel(): CL_UNKNOWN_ERROR caused by an invalid work-item count during weak-hash-check
|
- 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 nvapi datatype definition for NvS32 and NvU32
|
||||||
- Fixed WPA/WPA2 cracking in case eapol frame is >= 248 byte
|
- Fixed WPA/WPA2 cracking in case eapol frame is >= 248 byte
|
||||||
|
- Fixed string not null terminated inside workaround for checking drm driver path
|
||||||
|
|
||||||
##
|
##
|
||||||
## Technical
|
## Technical
|
||||||
|
@ -77,7 +77,11 @@ static int ocl_check_dri (MAYBE_UNUSED hashcat_ctx_t *hashcat_ctx)
|
|||||||
|
|
||||||
char buf[HCBUFSIZ_TINY];
|
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;
|
if (strstr (buf, "amdgpu") == NULL) return 0;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user