From patchwork Mon Dec 24 00:14:49 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Niedermayer X-Patchwork-Id: 11533 Return-Path: X-Original-To: patchwork@ffaux-bg.ffmpeg.org Delivered-To: patchwork@ffaux-bg.ffmpeg.org Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100]) by ffaux.localdomain (Postfix) with ESMTP id B5AF644CC3F for ; Mon, 24 Dec 2018 02:17:33 +0200 (EET) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 66A9768ABCB; Mon, 24 Dec 2018 02:17:30 +0200 (EET) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from vie01a-dmta-pe05-2.mx.upcmail.net (vie01a-dmta-pe05-2.mx.upcmail.net [84.116.36.12]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 0143268A844 for ; Mon, 24 Dec 2018 02:17:24 +0200 (EET) Received: from [172.31.216.235] (helo=vie01a-pemc-psmtp-pe12.mail.upcmail.net) by vie01a-dmta-pe05.mx.upcmail.net with esmtp (Exim 4.88) (envelope-from ) id 1gbDw0-0007ys-0p for ffmpeg-devel@ffmpeg.org; Mon, 24 Dec 2018 01:17:28 +0100 Received: from localhost ([213.47.41.20]) by vie01a-pemc-psmtp-pe12.mail.upcmail.net with ESMTP id bDtrgCCqo2WSsbDtrgv97I; Mon, 24 Dec 2018 01:15:15 +0100 X-Env-Mailfrom: michael@niedermayer.cc X-Env-Rcptto: ffmpeg-devel@ffmpeg.org X-SourceIP: 213.47.41.20 X-CNFS-Analysis: v=2.3 cv=E7kcWpVl c=1 sm=1 tr=0 a=I1eytVlZLDX1BM2VTtTtSw==:117 a=I1eytVlZLDX1BM2VTtTtSw==:17 a=MKtGQD3n3ToA:10 a=1oJP67jkp3AA:10 a=GEAsPZ9sns4A:10 a=ZZnuYtJkoWoA:10 a=991YDqzK6XEc8ZFq5ucA:9 From: Michael Niedermayer To: FFmpeg development discussions and patches Date: Mon, 24 Dec 2018 01:14:49 +0100 Message-Id: <20181224001451.8853-1-michael@niedermayer.cc> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 X-CMAE-Envelope: MS4wfE2gmiQyQ/9xJRB2YP263gCeeWvLEGKXIVFgwn35JoOgSGWKip3I/MNeQOu4KTM+tGZP92/ID4JuK9YUwTQaSaMrcmpj3I5v6QoOsXNm6ySp/EYTWQF9 XsjwTTZb0Qz897M2LjCzmf2dJRoRL2xOM6hdL8n4qXtlix8TSZHtipUU Subject: [FFmpeg-devel] [PATCH 1/3] vcodec/lagarith: Remove duplicate check 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 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Signed-off-by: Michael Niedermayer --- libavcodec/lagarith.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/libavcodec/lagarith.c b/libavcodec/lagarith.c index 5763504b71..59169be5de 100644 --- a/libavcodec/lagarith.c +++ b/libavcodec/lagarith.c @@ -669,9 +669,6 @@ static int lag_decode_frame(AVCodecContext *avctx, if ((ret = ff_thread_get_buffer(avctx, &frame, 0)) < 0) return ret; - if (buf_size <= offset_ry || buf_size <= offset_gu || buf_size <= offset_bv) { - return AVERROR_INVALIDDATA; - } if (offset_ry >= buf_size || offset_gu >= buf_size ||