mirror of
https://github.com/hashcat/hashcat
synced 2024-11-17 08:28:39 +01:00
Fix memory allocation for clBuildProgram() retry version
This commit is contained in:
parent
4075577340
commit
9d2c24fc0d
@ -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);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user