mirror of
https://github.com/hashcat/hashcat.git
synced 2024-12-25 07:58:19 +00:00
Fix of invalid use of free()
This commit is contained in:
parent
e9960709b5
commit
02dd1f20ab
@ -397,8 +397,7 @@ cl_int hc_clBuildProgram (OCL_PTR *ocl, cl_program program, cl_uint num_devices,
|
|||||||
|
|
||||||
char *options_update = (char *) mymalloc (len + 1);
|
char *options_update = (char *) mymalloc (len + 1);
|
||||||
|
|
||||||
options_update = strncat (options_update, options, len - 1 - 15);
|
snprintf (options_update, len, "%s -cl-opt-disable", options);
|
||||||
options_update = strncat (options_update, " -cl-opt-disable", 1 + 15);
|
|
||||||
|
|
||||||
if (data.quiet == 0) log_error ("\n=== Build failed, retry with optimization disabled ===\n");
|
if (data.quiet == 0) log_error ("\n=== Build failed, retry with optimization disabled ===\n");
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user