Message ID | 20240919225639.2376418-4-michael@niedermayer.cc |
---|---|
State | New |
Headers | show
Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a59:d154:0:b0:48e:c0f8:d0de with SMTP id bt20csp620022vqb; Thu, 19 Sep 2024 15:57:22 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCWQVkp0iv1eT9OPgApXa1Q87oIth9c+CpuA75r7E8HOPTe/rZfEhWnEngD5vGGskWLzSX/gka1Gtw2BOYvhphl+@gmail.com X-Google-Smtp-Source: AGHT+IGxu4zZkshNwPPoLc1MoRr/NfQxZ8dKoLSQAcPFPrTBp0zb6JcCQlo8gezN1/4ImdM56vLm X-Received: by 2002:a17:907:9444:b0:a8d:29b7:ecf3 with SMTP id a640c23a62f3a-a90d4fdec7dmr66971366b.13.1726786642097; Thu, 19 Sep 2024 15:57:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1726786642; cv=none; d=google.com; s=arc-20240605; b=Kw9LBNCfiC2WdP8/R4uJMqEBUcW4/oGp5YD0xVeGt1P4QCPMSmJLM86AUvo91DZ8aq 0obnlR2frfCZXcwkg3LsGuKq83YdKzsFiW3V5MrcGqnmV8kaqaTmo1y2BmAJI3seXfm1 JSP25rPxjLieey6Iadc3PoUCDOt4nbN/YVSigV1qACQfAw/DzGxQeOfv5uoecciEWsDX OA5O3bZbuQajlZ3fDBsMjJIJJ9IYyeH94W7wAaoRjBlLM8CBZrbgoSPtOONflYd2rXc/ zsVviVlVefMSLGur9lr+joy2p0RNWPmKkl2dfJwqj5DxwSWgkQsh5M0wN+LPAEMXWdoN L9nA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=sender:errors-to:content-transfer-encoding:reply-to:list-subscribe :list-help:list-post:list-archive:list-unsubscribe:list-id :precedence:subject:mime-version:references:in-reply-to:message-id :date:to:from:dkim-signature:delivered-to; bh=rt/8DpFK4o4dv2ppchwYMR55Ddidga9phgN2qjjQLWg=; fh=e5zN9xSzcxLA6bGo3lF+CqTbY/oLwzApV03EO/RBfgQ=; b=jbt+p92tpUEwgjHfT5I+z5PX9kp4yEWCXQccIxA887htaM+LvrCA80JNXJpQmFCXy/ fyfJybiwVsTN/RMVv8d21beopmSPihI0mMhlBCpvfsNne+NjFXvaDnvBHkB2IuPD9FON AtEIyyXXm64kkRVaEwDv8xxXD81vlmq8Eb9ki+2W7FJHn1wLiL9qZoDODZC7+jMvGX5U HU/B+nTWYgL36bFBx6WYx21eGrtb1drpeijvigR4HflHc17Rv9Ruk/LYDZFgMtJVPaRW lQejhWDOWU+s0Qegryz0PGEFKsR91FtlcUGZlxDrmcatgjUGN1UzpbywXd+dZe/aMaWY 7KKA==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@niedermayer.cc header.s=gm1 header.b="pgusj/51"; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org Return-Path: <ffmpeg-devel-bounces@ffmpeg.org> Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id a640c23a62f3a-a90612c6331si863080366b.427.2024.09.19.15.57.21; Thu, 19 Sep 2024 15:57:22 -0700 (PDT) Received-SPF: pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) client-ip=79.124.17.100; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@niedermayer.cc header.s=gm1 header.b="pgusj/51"; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 097DF68DC68; Fri, 20 Sep 2024 01:56:51 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from relay1-d.mail.gandi.net (relay1-d.mail.gandi.net [217.70.183.193]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 2E3F068B32F for <ffmpeg-devel@ffmpeg.org>; Fri, 20 Sep 2024 01:56:43 +0300 (EEST) Received: by mail.gandi.net (Postfix) with ESMTPSA id 6DF34240003 for <ffmpeg-devel@ffmpeg.org>; Thu, 19 Sep 2024 22:56:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=niedermayer.cc; s=gm1; t=1726786602; 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=psGTQWw3q6z1i2Fn/mByFRcTWno4vawNaRCGBjbBbPc=; b=pgusj/51Gkr78AwZl3qzLyx1I7eYcUei1zxcB0AaluuHySL0LGOjyW3GqTA5dtyXZWKA85 buvm8/17S5qA8KxIp0NanmAHkGqPqZTKE6w9AdpAa5eM0CG2ZZNFJ7S0eztNx7e5TyPSgT QchJw1Zr1wEWJPmJ9cgVrnP9zrirKHV/leIPJr+ulWtnXB3V+PhdfQJpP/ah4L1zr6lfXW EnZ84Mls3vQvbUtzGGvL5EiyAun7Zs494RZNpeKN7+Q3mvgfK7K7qNB2RVkBt1G0HPwene ZWycrwcKhJoAH1VmEwQNUNDlkY1yastG8o1jlfaxM6lvOurspadMxlUTU9AR/A== From: Michael Niedermayer <michael@niedermayer.cc> To: FFmpeg development discussions and patches <ffmpeg-devel@ffmpeg.org> Date: Fri, 20 Sep 2024 00:56:34 +0200 Message-ID: <20240919225639.2376418-4-michael@niedermayer.cc> X-Mailer: git-send-email 2.46.1 In-Reply-To: <20240919225639.2376418-1-michael@niedermayer.cc> References: <20240919225639.2376418-1-michael@niedermayer.cc> MIME-Version: 1.0 X-GND-Sasl: michael@niedermayer.cc Subject: [FFmpeg-devel] [PATCH 4/9] avcodec/osq: use unsigned for decorrelation X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FFmpeg development discussions and patches <ffmpeg-devel.ffmpeg.org> List-Unsubscribe: <https://ffmpeg.org/mailman/options/ffmpeg-devel>, <mailto:ffmpeg-devel-request@ffmpeg.org?subject=unsubscribe> List-Archive: <https://ffmpeg.org/pipermail/ffmpeg-devel> List-Post: <mailto:ffmpeg-devel@ffmpeg.org> List-Help: <mailto:ffmpeg-devel-request@ffmpeg.org?subject=help> List-Subscribe: <https://ffmpeg.org/mailman/listinfo/ffmpeg-devel>, <mailto:ffmpeg-devel-request@ffmpeg.org?subject=subscribe> Reply-To: FFmpeg development discussions and patches <ffmpeg-devel@ffmpeg.org> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" <ffmpeg-devel-bounces@ffmpeg.org> X-TUID: LsavTRNF7AIx |
Series |
None
|
expand
|
diff --git a/libavcodec/osq.c b/libavcodec/osq.c index 2b75364c18c..1bf62646994 100644 --- a/libavcodec/osq.c +++ b/libavcodec/osq.c @@ -342,7 +342,7 @@ static int do_decode(AVCodecContext *avctx, AVFrame *frame, int decorrelate, int if (nb_channels == 2 && ch == 1) { if (decorrelate) - dst[n] += s->decode_buffer[0][OFFSET+n]; + dst[n] += (unsigned)s->decode_buffer[0][OFFSET+n]; } if (downsample)
Fixes: signed integer overflow: 1205469696 + 1901074655 cannot be represented in type 'int' Fixes: 70773/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_OSQ_fuzzer-5419594888577024 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> --- libavcodec/osq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)