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 ESMTP id CBD9E4A6BA for ; Wed, 3 Apr 2024 22:52:02 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 88B5368D150; Thu, 4 Apr 2024 01:51:44 +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 8F8F168CB86 for ; Thu, 4 Apr 2024 01:51:37 +0300 (EEST) Received: by mail.gandi.net (Postfix) with ESMTPSA id BCC661BF204 for ; Wed, 3 Apr 2024 22:51:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=niedermayer.cc; s=gm1; t=1712184696; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:in-reply-to:in-reply-to:references:references; bh=KdP6gybbGZz76uH2taJ7EWrhQIWsAsQvpu2/scKbPEw=; b=K6/7guUMbKlpBgsmJ8x5UtaDHYHdHIGRTZx0ILexS0lPrW/nlo/Rh2FV3M7xXQb/QSvWrA ad1n8/uNaVw6UexUrccZnzWDoma/oolLpuig4AF1mSbCgnd4ABoxoKvs7ZLydSWYmnvBdz DnHts4rZhhjl2Br09GHpD68aFkUZIH86eUeDoLSdsTO9NYbDflOzak0Kq1AIKKRaaj34b6 2yxVie4GMOSevAxh4gA/EKWR+ZumaIroChAq/2ZxWJZZ9aw+gcnU/ppOzay+jT1IAaBDg6 qvJnCLYs4hREZftHmYzvMlJhRuX9MWGUPjL71pRpkozrUY+Vq0cSkoFzrz7siA== From: Michael Niedermayer To: FFmpeg development discussions and patches Date: Thu, 4 Apr 2024 00:51:32 +0200 Message-Id: <20240403225134.31764-3-michael@niedermayer.cc> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20240403225134.31764-1-michael@niedermayer.cc> References: <20240403225134.31764-1-michael@niedermayer.cc> X-GND-Sasl: michael@niedermayer.cc Subject: [FFmpeg-devel] [PATCH 3/5] swscale/utils: Fix xInc overflow 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 MIME-Version: 1.0 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: Fixes: signed integer overflow: 2 * 1073741824 cannot be represented in type 'int' Fixes: 67802/clusterfuzz-testcase-minimized-ffmpeg_SWS_fuzzer-6249515855183872 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer --- libswscale/utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libswscale/utils.c b/libswscale/utils.c index d34c8d1641e..df14eb016ce 100644 --- a/libswscale/utils.c +++ b/libswscale/utils.c @@ -593,7 +593,7 @@ static av_cold int initFilter(int16_t **outFilter, int32_t **filterPos, filter[i * filterSize + j] = coeff; xx++; } - xDstInSrc += 2 * xInc; + xDstInSrc += 2LL * xInc; } } -- 2.17.1 _______________________________________________ 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".