From: jsteube Date: Sat, 4 Jun 2016 16:20:32 +0000 (+0200) Subject: Fix memory allocation for clBuildProgram() retry version X-Git-Tag: v3.00~82 X-Git-Url: https://www.flypig.org.uk/git/?a=commitdiff_plain;h=9d2c24fc0dc8d89ceab3eef29f7be9153d8e4cd9;p=hashcat.git Fix memory allocation for clBuildProgram() retry version --- diff --git a/src/ext_OpenCL.c b/src/ext_OpenCL.c index becf484..a0c1dc0 100644 --- a/src/ext_OpenCL.c +++ b/src/ext_OpenCL.c @@ -393,7 +393,7 @@ cl_int hc_clBuildProgram (OCL_PTR *ocl, cl_program program, cl_uint num_devices, 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);