OSDN Git Service

cmdutils_opencl: Fix read of uninitialized pointer
authorMichael Niedermayer <michael@niedermayer.cc>
Mon, 17 Apr 2017 01:23:55 +0000 (03:23 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Thu, 11 May 2017 11:02:12 +0000 (13:02 +0200)
Fixes: CID1396856

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
cmdutils_opencl.c

index 655d1c9..f141d1e 100644 (file)
@@ -129,7 +129,7 @@ static int64_t run_opencl_bench(AVOpenCLExternalEnv *ext_opencl_env)
     cl_int status;
     size_t kernel_len;
     char *inbuf;
-    int *mask;
+    int *mask = NULL;
     int buf_size = width * height * sizeof(char);
     int mask_size = sizeof(uint32_t) * 128;