From patchwork Sun Sep 10 19:10: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: 5074 Delivered-To: ffmpegpatchwork@gmail.com Received: by 10.2.36.26 with SMTP id f26csp2289397jaa; Sun, 10 Sep 2017 12:11:06 -0700 (PDT) X-Google-Smtp-Source: ADKCNb6lAv/erxT5xsw2pt65gA2IyNxwnbAIjzmaGyFjp4KwfATTw6gtsQNjIPG86kzhnm89oLDF X-Received: by 10.223.153.163 with SMTP id y32mr6958036wrb.8.1505070666738; Sun, 10 Sep 2017 12:11:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1505070666; cv=none; d=google.com; s=arc-20160816; b=Ib/1YPhXdJDJgtRpaZFqj86dIMbYLP8f/nsXz8RSskSjKfaBsgOzpUXT6kot8DGh8Z 1o4wccIqDZLByVr+On7+JwaEKHfBKfHbh5WJzMN46KbUBwvQ3gpT161v12wMBeaAJy5Z jFd0sZ9yZCiRGYMbeU97NHvqQRuzSaWu0ZNon6469W6y2J/8fejFbxDjXRvD+/j0NF2N 9xyrfbNV70vtZjCMrhff1xCKvHCwQaqZ5j2Y8XY7FgS+zEzfnQa4WzE4gPm5YtHilHJJ W5TD0V7wVyTrdgZNfkG2+N3mHy0QC3zlAPfcjBO5eELo+B1gXsvJIzj6H6R74hsKwGc7 USqg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version:reply-to :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:references:in-reply-to:message-id:date :to:from:delivered-to:arc-authentication-results; bh=o4nCE5BGPS2oPvpsh5ZxjsNnf1xe3rnEouDQlF+KatQ=; b=Z8COzs66aQi68zbSInxKAonSSZKGDBOXV3Luyh7J+61cB2zVo3x+S7jKZxbIwOrwyM tThCvBy2IdKUi/8J+jT8jJ2ypury6beCdvLGhkGLiCUSLkISfEdcQHl/K+EevjSGYmLO twnXflu2hl/kifhpW09XfiRHyuFZ5pfw+1UnaHLjROZ46IwuPFlA/PTukkpOuDfFcb0u 5YT3SN7cyd7ZQyMJIvVsA6QcvCdgeIKOLmCCrEVjHUD1a6bDsUWpAxxC5Esfj9Laorj1 kJiW9agWYYkoHgwTF/QaywaZANll1S/i7kGuEkuMv3iFnbA78Hs4/xy77u5d5q0hUTd6 vrCw== ARC-Authentication-Results: i=1; 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 Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id 127si5249377wmm.130.2017.09.10.12.11.06; Sun, 10 Sep 2017 12:11:06 -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 E52E6689BB3; Sun, 10 Sep 2017 22:10:48 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from vie01a-dmta-pe05-1.mx.upcmail.net (vie01a-dmta-pe05-1.mx.upcmail.net [84.116.36.11]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 5FEF3689A4A for ; Sun, 10 Sep 2017 22:10:42 +0300 (EEST) Received: from [172.31.216.43] (helo=vie01a-pemc-psmtp-pe01) by vie01a-dmta-pe05.mx.upcmail.net with esmtp (Exim 4.88) (envelope-from ) id 1dr7d1-0005LZ-2r for ffmpeg-devel@ffmpeg.org; Sun, 10 Sep 2017 21:10:47 +0200 Received: from localhost ([213.47.41.20]) by vie01a-pemc-psmtp-pe01 with SMTP @ mailcloud.upcmail.net id 7vAL1w00r0S5wYM01vAMv8; Sun, 10 Sep 2017 21:10:21 +0200 X-SourceIP: 213.47.41.20 From: Michael Niedermayer To: FFmpeg development discussions and patches Date: Sun, 10 Sep 2017 21:10:17 +0200 Message-Id: <20170910191018.3390-2-michael@niedermayer.cc> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20170910191018.3390-1-michael@niedermayer.cc> References: <20170910191018.3390-1-michael@niedermayer.cc> Subject: [FFmpeg-devel] [PATCH 2/3] avcodec/hevc_ps: Fix c?_qp_offset_list size 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: runtime error: index 5 out of bounds for type 'int8_t const[5]' Fixes:3175/clusterfuzz-testcase-minimized-4736774054084608 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer --- libavcodec/hevc_ps.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libavcodec/hevc_ps.h b/libavcodec/hevc_ps.h index 78f9dd876e..4e6c3bc849 100644 --- a/libavcodec/hevc_ps.h +++ b/libavcodec/hevc_ps.h @@ -366,8 +366,8 @@ typedef struct HEVCPPS { uint8_t chroma_qp_offset_list_enabled_flag; uint8_t diff_cu_chroma_qp_offset_depth; uint8_t chroma_qp_offset_list_len_minus1; - int8_t cb_qp_offset_list[5]; - int8_t cr_qp_offset_list[5]; + int8_t cb_qp_offset_list[6]; + int8_t cr_qp_offset_list[6]; uint8_t log2_sao_offset_scale_luma; uint8_t log2_sao_offset_scale_chroma;