From 38514895b3cea3fc4ff898dc1a02a76299ef0f0f Mon Sep 17 00:00:00 2001 From: jsteube Date: Sun, 20 Nov 2016 21:14:51 +0100 Subject: [PATCH] Rewrite some calls to clGetProgramInfo() to make scan-build happy --- src/opencl.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/opencl.c b/src/opencl.c index 006729c5a..83ad140fe 100644 --- a/src/opencl.c +++ b/src/opencl.c @@ -3780,7 +3780,7 @@ 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 (char *), &binary, NULL); if (CL_rc == -1) return -1; @@ -3986,7 +3986,7 @@ 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 (char *), &binary, NULL); if (CL_rc == -1) return -1; @@ -4128,7 +4128,7 @@ 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 (char *), &binary, NULL); if (CL_rc == -1) return -1;