From patchwork Sat Oct 21 23:41:56 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Niedermayer X-Patchwork-Id: 5644 Delivered-To: ffmpegpatchwork@gmail.com Received: by 10.2.161.90 with SMTP id m26csp5246407jah; Sat, 21 Oct 2017 16:42:22 -0700 (PDT) X-Google-Smtp-Source: ABhQp+TtJsXQPZ1P4ZJj5HfGaH+zZoGLYvts4lF5belcawZCkBrmkFQ1kgq3r1I/6ziZ1A5ywsEg X-Received: by 10.223.198.6 with SMTP id n6mr1470446wrg.200.1508629342907; Sat, 21 Oct 2017 16:42:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1508629342; cv=none; d=google.com; s=arc-20160816; b=I9LeNfoagiITS/bpiqNg+o1Mw1QsXXuPDigzz3jrgD85Fh1BUrtdmLDTD58P7G0Hpk CNoqF7iPPnbVdBkLWA0ztLdzAb3zWHvT6wAHTdaURz3LVqEdzv7B5uL8DfOZfH4ry9Yv smdIvwR6k3v6hv1NIBXg6qGndg0qtsYVaPvgcaMcPuVDJkPxZabyiR7OOQ/nciX6YV/8 rVsExbwM4WipXllCPeQPL7VmgHHsoEJEonPHZoV9rhiBwGgqjE18I9y71VPBs5KWsYEG Fk4WXr4y6UyR6n849KESwZJ51WTqXAEQ2/OsFigB6e/Z1dloe3YpAlJ5MU30m0lhPwqF ny5Q== 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:message-id:date:to:from:delivered-to :arc-authentication-results; bh=UA85Cepkuhwx1XOaPtf7yeQjIoD7aTbkwN8fVFdmE3I=; b=s9s2zs5p2TjwnTRW5CiEjBdBTe0fNBKKUuopOd6GuiuN9TZuwApBpDKEGwKsMb/pQR 3Wf6cwSKV6BayOuWpCldsf/gM1q9YtbX5Oi5QZnQUrtYRGUcecpbHJjkwlXOm6zFwKUq d+wXHNQGm/F5holGrMlXvtNirSmcweC/pr5+z2GmpBFOCGfeL37CoX8rH9cmEUNHMqIf Jq2mzDSNQiMgFsS1wq0DbRCM/0QDqCKPXbkSt7h8KxTFOvLx9n8uTc6iP5IHisFA2rah 94eFYxzoxGoDKpx9LEttYQ6GMSOr6rwozEXHZIykES6CRq94o7/wxsPnZlFORceiqsy7 LiTg== 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 r82si1340288wmb.8.2017.10.21.16.42.21; Sat, 21 Oct 2017 16:42:22 -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 81BCA689E50; Sun, 22 Oct 2017 02:42:14 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from vie01a-qmta-pe02-3.mx.upcmail.net (vie01a-qmta-pe02-3.mx.upcmail.net [62.179.121.183]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 26A1A689E34 for ; Sun, 22 Oct 2017 02:42:08 +0300 (EEST) Received: from [172.31.218.39] (helo=vie01a-dmta-pe03-3.mx.upcmail.net) by vie01a-pqmta-pe02.mx.upcmail.net with esmtp (Exim 4.88) (envelope-from ) id 1e63PC-0000G1-AM for ffmpeg-devel@ffmpeg.org; Sun, 22 Oct 2017 01:42:14 +0200 Received: from [172.31.216.43] (helo=vie01a-pemc-psmtp-pe01) by vie01a-dmta-pe03.mx.upcmail.net with esmtp (Exim 4.88) (envelope-from ) id 1e63P5-0005OK-Uo for ffmpeg-devel@ffmpeg.org; Sun, 22 Oct 2017 01:42:07 +0200 Received: from localhost ([213.47.41.20]) by vie01a-pemc-psmtp-pe01 with SMTP @ mailcloud.upcmail.net id QPhy1w01B0S5wYM01Phzd6; Sun, 22 Oct 2017 01:41:59 +0200 X-SourceIP: 213.47.41.20 From: Michael Niedermayer To: FFmpeg development discussions and patches Date: Sun, 22 Oct 2017 01:41:56 +0200 Message-Id: <20171021234158.19405-1-michael@niedermayer.cc> X-Mailer: git-send-email 2.14.2 Subject: [FFmpeg-devel] [PATCH 1/3] avcodec/h264dec: Fix potential array overread 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" add padding before scantable arrays See: 522d850e68ec4b77d3477b3c8f55b1ba00a9d69a Signed-off-by: Michael Niedermayer --- libavcodec/h264dec.h | 1 + 1 file changed, 1 insertion(+) diff --git a/libavcodec/h264dec.h b/libavcodec/h264dec.h index 2106ba077e..de8b7c38b9 100644 --- a/libavcodec/h264dec.h +++ b/libavcodec/h264dec.h @@ -416,6 +416,7 @@ typedef struct H264Context { uint8_t (*mvd_table[2])[2]; uint8_t *direct_table; + uint8_t scan_padding[16]; uint8_t zigzag_scan[16]; uint8_t zigzag_scan8x8[64]; uint8_t zigzag_scan8x8_cavlc[64];