projects
/
hashcat.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e996070
)
Fix of invalid use of free()
author
jsteube
<jens.steube@gmail.com>
Fri, 3 Jun 2016 12:18:56 +0000
(14:18 +0200)
committer
jsteube
<jens.steube@gmail.com>
Fri, 3 Jun 2016 12:18:56 +0000
(14:18 +0200)
src/ext_OpenCL.c
patch
|
blob
|
history
diff --git
a/src/ext_OpenCL.c
b/src/ext_OpenCL.c
index
79eb656
..
d6fa486
100644
(file)
--- a/
src/ext_OpenCL.c
+++ b/
src/ext_OpenCL.c
@@
-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);
- options_update = strncat (options_update, options, len - 1 - 15);
- options_update = strncat (options_update, " -cl-opt-disable", 1 + 15);
+ snprintf (options_update, len, "%s -cl-opt-disable", options);
if (data.quiet == 0) log_error ("\n=== Build failed, retry with optimization disabled ===\n");