From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ffbox0-bg.ffmpeg.org (ffbox0-bg.ffmpeg.org [79.124.17.100]) by master.gitmailbox.com (Postfix) with ESMTPS id E00B14CC5D for ; Sun, 13 Jul 2025 01:11:27 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.ffmpeg.org (Postfix) with ESMTP id 8C86F68F557; Sun, 13 Jul 2025 04:10:46 +0300 (EEST) Received: from relay7-d.mail.gandi.net (relay7-d.mail.gandi.net [217.70.183.200]) by ffbox0-bg.ffmpeg.org (Postfix) with ESMTPS id D37D468F550 for ; Sun, 13 Jul 2025 04:10:35 +0300 (EEST) Received: by mail.gandi.net (Postfix) with ESMTPSA id 1FCDC43912 for ; Sun, 13 Jul 2025 01:10:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=niedermayer.cc; s=gm1; t=1752369035; 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=p/AzuXJylcoWpl6J7rn5gnNTHzR+K9M49NaNbheAd48=; b=X8Ctv9CO8hKJMxsM8oKf6TFAdQJxxWJ3wExf6at1okRgXn4T3puX+nRBqMfUvQQShx80eD P1Ne1lREG/HXLA5FIF02Izerjmm2bjgUjUY95jsI8iZO4L4yNa8IRuUzr5jeCSBX4SDJ52 JY4o8T5SdpNISltra8RBQ5riwisokBBrQOs2GftVVxS8K/3Roe3rgYTcFx/LVjqpzSKo9X 5sZ8AIJO6kDD8LPi/ndXh6epZKWeUkrQ2JIljEnMdNSrPH7GKtDFZNkfKK23rLiBKHBMcN G0C2BtSQzkMpGgsyoqa1GU1xdweOJDgNCIQgt51Ah6E3+E9fo+OL4NTiAmuWNw== From: Michael Niedermayer To: FFmpeg development discussions and patches Date: Sun, 13 Jul 2025 03:10:30 +0200 Message-ID: <20250713011030.1156550-5-michael@niedermayer.cc> X-Mailer: git-send-email 2.49.0 In-Reply-To: <20250713011030.1156550-1-michael@niedermayer.cc> References: <20250713011030.1156550-1-michael@niedermayer.cc> MIME-Version: 1.0 X-GND-State: clean X-GND-Score: -85 X-GND-Cause: gggruggvucftvghtrhhoucdtuddrgeeffedrtdefgdegjeejvdcutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfitefpfffkpdcuggftfghnshhusghstghrihgsvgenuceurghilhhouhhtmecufedtudenucesvcftvggtihhpihgvnhhtshculddquddttddmnegfrhhlucfvnfffucdludehmdenucfjughrpefhvffufffkofgjfhgggfestdekredtredttdenucfhrhhomhepofhitghhrggvlhcupfhivgguvghrmhgrhigvrhcuoehmihgthhgrvghlsehnihgvuggvrhhmrgihvghrrdgttgeqnecuggftrfgrthhtvghrnhepgeejhfetgefhgfeludegvdduvdffgeefvddtheetlefhueeitdevffevfeehhefgnecuffhomhgrihhnpehgihhthhhusgdrtghomhenucfkphepgedurdeiiedrieehrddujeeinecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehinhgvthepgedurdeiiedrieehrddujeeipdhhvghloheplhhotggrlhhhohhsthdpmhgrihhlfhhrohhmpehmihgthhgrvghlsehnihgvuggvrhhmrgihvghrrdgttgdpnhgspghrtghpthhtohepuddprhgtphhtthhopehffhhmphgvghdquggvvhgvlhesfhhfmhhpvghgrdhorhhg X-GND-Sasl: michael@niedermayer.cc Subject: [FFmpeg-devel] [PATCH 5/5] avcodec/osq: Fix 32bit sample 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 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: 2147483565 + 128 cannot be represented in type 'int' Fixes: 428055715/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_OSQ_fuzzer-6358069900804096 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer --- libavcodec/osq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/osq.c b/libavcodec/osq.c index 76090aa8d07..1d99ab32451 100644 --- a/libavcodec/osq.c +++ b/libavcodec/osq.c @@ -390,7 +390,7 @@ static int osq_decode_block(AVCodecContext *avctx, AVFrame *frame) int32_t *src = s->decode_buffer[ch] + OFFSET; for (int n = 0; n < nb_samples; n++) - dst[n] = av_clip_uint8(src[n] + 0x80); + dst[n] = av_clip_uint8(src[n] + 0x80ll); } break; case AV_SAMPLE_FMT_S16P: -- 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".