From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100]) by master.gitmailbox.com (Postfix) with ESMTPS id 06A4E4C9D3 for ; Sun, 11 May 2025 00:34:15 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 48D5A68C282; Sun, 11 May 2025 03:33:02 +0300 (EEST) Received: from relay8-d.mail.gandi.net (relay8-d.mail.gandi.net [217.70.183.201]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 95DCB68C155 for ; Sun, 11 May 2025 03:32:53 +0300 (EEST) Received: by mail.gandi.net (Postfix) with ESMTPSA id 00FD243AEE for ; Sun, 11 May 2025 00:32:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=niedermayer.cc; s=gm1; t=1746923573; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=RwyHzNbB4AsM/NIBdGMRrjJu8DEOkxGeDkV8/rgALuA=; b=ayF/UVAuYtjMuV42QjTtQtxLuctV0C1JhO5ZdBcSBYioYIc2/7bPnlTl+5YON6FVeWFJm6 RtgF1ss6UeZG/cxx3+A+tTVNruH8a5WGG6D/HTcds0sCpwUTK30Ukd4PnzGfajrLRy9THt rlqcqPTMHAqT+/aDiIA7BzJKwY3FCeN2lZwXwcElxdUAC5KoYwIP2rBEvPbVAhhmXHCP4k VaNLD83ZjFO71hjeLLtyjQmQBEKw/I1qiHVKOBvMWEnIIhbfSm6+pT0pElQ60CFwDKUuxx RTr3/eLqPetWo/VmW5WFkG5W55vTr7ZU7HxExEEBag4UbDazq884uswCwCA/hQ== From: Michael Niedermayer To: FFmpeg development discussions and patches Date: Sun, 11 May 2025 02:32:44 +0200 Message-ID: <20250511003245.413345-7-michael@niedermayer.cc> X-Mailer: git-send-email 2.49.0 In-Reply-To: <20250511003245.413345-1-michael@niedermayer.cc> References: <20250511003245.413345-1-michael@niedermayer.cc> MIME-Version: 1.0 X-GND-State: clean X-GND-Score: -70 X-GND-Cause: gggruggvucftvghtrhhoucdtuddrgeefvddrtddtgddvleeileehucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuifetpfffkfdpucggtfgfnhhsuhgsshgtrhhisggvnecuuegrihhlohhuthemuceftddunecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenfghrlhcuvffnffculdeftddmnecujfgurhephffvufffkffojghfggfgsedtkeertdertddtnecuhfhrohhmpefoihgthhgrvghlucfpihgvuggvrhhmrgihvghruceomhhitghhrggvlhesnhhivgguvghrmhgrhigvrhdrtggtqeenucggtffrrghtthgvrhhnpedvgfefudeijeetieejkefgfffhtdeludeuffdvfeelieevjeetvedufeetfeejfeenucfkphepgedurdeiiedrieejrdduudefnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehinhgvthepgedurdeiiedrieejrdduudefpdhhvghloheplhhotggrlhhhohhsthdpmhgrihhlfhhrohhmpehmihgthhgrvghlsehnihgvuggvrhhmrgihvghrrdgttgdpnhgspghrtghpthhtohepuddprhgtphhtthhopehffhhmphgvghdquggvvhgvlhesfhhfmhhpvghgrdhorhhg X-GND-Sasl: michael@niedermayer.cc Subject: [FFmpeg-devel] [PATCH 7/8] avcodec/svq3: Check that for 8 byte space before subtracting X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.29 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 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: No testcase Signed-off-by: Michael Niedermayer --- libavcodec/svq3.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/svq3.c b/libavcodec/svq3.c index f730358e2f9..30bc9334af7 100644 --- a/libavcodec/svq3.c +++ b/libavcodec/svq3.c @@ -1173,7 +1173,7 @@ static av_cold int svq3_decode_init(AVCodecContext *avctx) int w,h; size = AV_RB32(&extradata[4]); - if (size > extradata_end - extradata - 8) + if (extradata_end - extradata < 8 || size > extradata_end - extradata - 8) return AVERROR_INVALIDDATA; init_get_bits(&gb, extradata + 8, size * 8); -- 2.49.0 _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".