From patchwork Mon Apr 17 02:17:17 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Niedermayer X-Patchwork-Id: 3437 Delivered-To: ffmpegpatchwork@gmail.com Received: by 10.103.3.129 with SMTP id 123csp1091484vsd; Sun, 16 Apr 2017 19:17:50 -0700 (PDT) X-Received: by 10.223.130.81 with SMTP id 75mr16405328wrb.150.1492395470028; Sun, 16 Apr 2017 19:17:50 -0700 (PDT) Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id x64si9502572wmb.6.2017.04.16.19.17.49; Sun, 16 Apr 2017 19:17:50 -0700 (PDT) Received-SPF: pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) client-ip=79.124.17.100; Authentication-Results: mx.google.com; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 013F068834F; Mon, 17 Apr 2017 05:17:33 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from vie01a-qmta-pe02-1.mx.upcmail.net (vie01a-qmta-pe02-1.mx.upcmail.net [62.179.121.181]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id BAF7A680463 for ; Mon, 17 Apr 2017 05:17:26 +0300 (EEST) Received: from [172.31.218.31] (helo=vie01a-dmta-pe01-1.mx.upcmail.net) by vie01a-pqmta-pe02.mx.upcmail.net with esmtp (Exim 4.88) (envelope-from ) id 1czwEQ-0000gp-8T for ffmpeg-devel@ffmpeg.org; Mon, 17 Apr 2017 04:17:34 +0200 Received: from [172.31.216.43] (helo=vie01a-pemc-psmtp-pe01) by vie01a-dmta-pe01.mx.upcmail.net with esmtp (Exim 4.88) (envelope-from ) id 1czwEK-0005ZZ-Rc for ffmpeg-devel@ffmpeg.org; Mon, 17 Apr 2017 04:17:28 +0200 Received: from localhost ([213.47.41.20]) by vie01a-pemc-psmtp-pe01 with SMTP @ mailcloud.upcmail.net id 9EHK1v0130S5wYM01EHLDZ; Mon, 17 Apr 2017 04:17:20 +0200 X-SourceIP: 213.47.41.20 From: Michael Niedermayer To: FFmpeg development discussions and patches Date: Mon, 17 Apr 2017 04:17:17 +0200 Message-Id: <20170417021718.8556-1-michael@niedermayer.cc> X-Mailer: git-send-email 2.11.0 Subject: [FFmpeg-devel] [PATCH 1/2] cmdutils_opencl: Fix read of uninitialized pointer X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: FFmpeg development discussions and patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: FFmpeg development discussions and patches MIME-Version: 1.0 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Fixes: CID1396856 Signed-off-by: Michael Niedermayer --- cmdutils_opencl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmdutils_opencl.c b/cmdutils_opencl.c index 655d1c9546..f141d1e243 100644 --- a/cmdutils_opencl.c +++ b/cmdutils_opencl.c @@ -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;