projects
/
hashcat.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4075577
)
Fix memory allocation for clBuildProgram() retry version
author
jsteube
<jens.steube@gmail.com>
Sat, 4 Jun 2016 16:20:32 +0000
(18:20 +0200)
committer
jsteube
<jens.steube@gmail.com>
Sat, 4 Jun 2016 16:20:32 +0000
(18:20 +0200)
src/ext_OpenCL.c
patch
|
blob
|
history
diff --git
a/src/ext_OpenCL.c
b/src/ext_OpenCL.c
index
becf484
..
a0c1dc0
100644
(file)
--- 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);