From 96e963b0d0e32ccba98356efb6388bc3ca859459 Mon Sep 17 00:00:00 2001 From: jsteube Date: Thu, 3 Nov 2016 00:02:53 +0100 Subject: [PATCH] Testwise commit, this could be a problem but never actually created a problem. Need to keep an eye on it --- src/opencl.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/opencl.c b/src/opencl.c index 1f9598955..83b51ebd0 100644 --- a/src/opencl.c +++ b/src/opencl.c @@ -3563,7 +3563,8 @@ int opencl_session_begin (hashcat_ctx_t *hashcat_ctx) char *binary = (char *) hcmalloc (hashcat_ctx, binary_size); VERIFY_PTR (binary); - CL_rc = hc_clGetProgramInfo (hashcat_ctx, device_param->program, CL_PROGRAM_BINARIES, sizeof (binary), &binary, NULL); + //CL_rc = hc_clGetProgramInfo (hashcat_ctx, device_param->program, CL_PROGRAM_BINARIES, sizeof (binary), &binary, NULL); + CL_rc = hc_clGetProgramInfo (hashcat_ctx, device_param->program, CL_PROGRAM_BINARIES, binary_size, &binary, NULL); if (CL_rc == -1) return -1; @@ -3769,7 +3770,8 @@ int opencl_session_begin (hashcat_ctx_t *hashcat_ctx) char *binary = (char *) hcmalloc (hashcat_ctx, binary_size); VERIFY_PTR (binary); - CL_rc = hc_clGetProgramInfo (hashcat_ctx, device_param->program_mp, CL_PROGRAM_BINARIES, sizeof (binary), &binary, NULL); + //CL_rc = hc_clGetProgramInfo (hashcat_ctx, device_param->program_mp, CL_PROGRAM_BINARIES, sizeof (binary), &binary, NULL); + CL_rc = hc_clGetProgramInfo (hashcat_ctx, device_param->program_mp, CL_PROGRAM_BINARIES, binary_size, &binary, NULL); if (CL_rc == -1) return -1; @@ -3911,7 +3913,8 @@ int opencl_session_begin (hashcat_ctx_t *hashcat_ctx) char *binary = (char *) hcmalloc (hashcat_ctx, binary_size); VERIFY_PTR (binary); - CL_rc = hc_clGetProgramInfo (hashcat_ctx, device_param->program_amp, CL_PROGRAM_BINARIES, sizeof (binary), &binary, NULL); + //CL_rc = hc_clGetProgramInfo (hashcat_ctx, device_param->program_amp, CL_PROGRAM_BINARIES, sizeof (binary), &binary, NULL); + CL_rc = hc_clGetProgramInfo (hashcat_ctx, device_param->program_amp, CL_PROGRAM_BINARIES, binary_size, &binary, NULL); if (CL_rc == -1) return -1;