1
0
mirror of https://github.com/hashcat/hashcat.git synced 2024-11-15 12:29:35 +00:00

Fix AMD OpenCL runtime bug in clGetProgramInfo()

This commit is contained in:
Jens Steube 2016-01-15 17:32:43 +01:00
parent b35d2dd2eb
commit 98b1a9370c

View File

@ -12564,11 +12564,6 @@ int main (int argc, char **argv)
hc_clGetDeviceInfo (device_param->device, CL_DRIVER_VERSION, INFOSZ, driver_version, NULL); hc_clGetDeviceInfo (device_param->device, CL_DRIVER_VERSION, INFOSZ, driver_version, NULL);
if (vendor_id == VENDOR_ID_AMD)
{
sscanf (driver_version, "%*16s %*16s %*16s (%[^)]16s)", driver_version);
}
device_param->driver_version = driver_version; device_param->driver_version = driver_version;
// device_name_chksum // device_name_chksum
@ -13415,7 +13410,7 @@ int main (int argc, char **argv)
u8 *binary = (u8 *) mymalloc (binary_size); u8 *binary = (u8 *) mymalloc (binary_size);
clGetProgramInfo (device_param->program, CL_PROGRAM_BINARIES, binary_size, &binary, NULL); clGetProgramInfo (device_param->program, CL_PROGRAM_BINARIES, sizeof (binary), &binary, NULL);
writeProgramBin (cached_file, binary, binary_size); writeProgramBin (cached_file, binary, binary_size);
@ -13544,7 +13539,7 @@ int main (int argc, char **argv)
u8 *binary = (u8 *) mymalloc (binary_size); u8 *binary = (u8 *) mymalloc (binary_size);
clGetProgramInfo (device_param->program_mp, CL_PROGRAM_BINARIES, binary_size, &binary, NULL); clGetProgramInfo (device_param->program_mp, CL_PROGRAM_BINARIES, sizeof (binary), &binary, NULL);
writeProgramBin (cached_file, binary, binary_size); writeProgramBin (cached_file, binary, binary_size);
@ -13657,7 +13652,7 @@ int main (int argc, char **argv)
u8 *binary = (u8 *) mymalloc (binary_size); u8 *binary = (u8 *) mymalloc (binary_size);
clGetProgramInfo (device_param->program_amp, CL_PROGRAM_BINARIES, binary_size, &binary, NULL); clGetProgramInfo (device_param->program_amp, CL_PROGRAM_BINARIES, sizeof (binary), &binary, NULL);
writeProgramBin (cached_file, binary, binary_size); writeProgramBin (cached_file, binary, binary_size);