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 647464A6C7 for ; Wed, 3 Apr 2024 22:51:44 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 6C91968D083; Thu, 4 Apr 2024 01:51:42 +0300 (EEST) Received: from relay4-d.mail.gandi.net (relay4-d.mail.gandi.net [217.70.183.196]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id BEBCC68CF08 for ; Thu, 4 Apr 2024 01:51:35 +0300 (EEST) Received: by mail.gandi.net (Postfix) with ESMTPSA id EC0A9E0004 for ; Wed, 3 Apr 2024 22:51:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=niedermayer.cc; s=gm1; t=1712184695; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc; bh=/J0sgHzxiEYLyziiKSUi6HZ5Rek7u8hIyUkeBWEcFFk=; b=a5DVIO1wEqPt2vlD7PPBKIqMCbNTO1Nh+xCmBF/+xRAJd7tfxWHYa0Esz8K8Y2rBOCDjm/ I/VeJ9+uUng5QEfNvy58tKai44LgsQCfNOv4XeFSZxLYTdSs/piZvThMWcJdSeRwWuK+IH 4tMeTg4hvR2aIAF6S1QwFxyynkZNUTh3aFLig3EbkEnBPUeflleH57fOifsi4eJOlMmhkk pIWWHWLG9tKPvePa72qN1OgjeeUMqPp120S57Pqbk+2Sk98cZUzMJTnj4aXw8tXR/FolY6 s3KTVcmCV4xNDdFy5H8jLEq9ZpIiHldmMV1BhErp4Likp8XCwdzerKQBQtQW1w== From: Michael Niedermayer To: FFmpeg development discussions and patches Date: Thu, 4 Apr 2024 00:51:30 +0200 Message-Id: <20240403225134.31764-1-michael@niedermayer.cc> X-Mailer: git-send-email 2.17.1 X-GND-Sasl: michael@niedermayer.cc Subject: [FFmpeg-devel] [PATCH 1/5] avcodec/wavarc: fix signed integer overflow in block type 6/19 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: -2088796289 + -91276551 cannot be represented in type 'int' Fixes: 67772/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_WAVARC_fuzzer-6533568953122816 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer --- libavcodec/wavarc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/wavarc.c b/libavcodec/wavarc.c index 7083494cd81..b4b26958e6f 100644 --- a/libavcodec/wavarc.c +++ b/libavcodec/wavarc.c @@ -647,7 +647,7 @@ static int decode_5elp(AVCodecContext *avctx, for (int o = 0; o < order; o++) sum += s->filter[ch][o] * (unsigned)samples[n + 70 - o - 1]; - samples[n + 70] += ac_out[n] + (sum >> 4); + samples[n + 70] += ac_out[n] + (unsigned)(sum >> 4); } for (int n = 0; n < 70; n++) -- 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".