1
0
mirror of https://github.com/hashcat/hashcat.git synced 2025-01-08 23:01:14 +00:00

Fix memory allocation for clBuildProgram() retry version

This commit is contained in:
jsteube 2016-06-04 18:20:32 +02:00
parent 4075577340
commit 9d2c24fc0d

View File

@ -393,7 +393,7 @@ cl_int hc_clBuildProgram (OCL_PTR *ocl, cl_program program, cl_uint num_devices,
if (CL_err != CL_SUCCESS) if (CL_err != CL_SUCCESS)
{ {
size_t len = strlen (options) + 1 + 15; size_t len = strlen (options) + 256;
char *options_update = (char *) mymalloc (len + 1); char *options_update = (char *) mymalloc (len + 1);