Message ID | 20240720005241.726089-8-michael@niedermayer.cc |
---|---|
State | New |
Headers | show
Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a59:a742:0:b0:482:c625:d099 with SMTP id f2csp905691vqm; Fri, 19 Jul 2024 18:31:49 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCVzlZGs4risEYymJ81KZeWYPEkw1Q8zbVmP4SnT+Mv3J+WGxz8VujtDVGB38/+9nbDpf7jOSWsayTY+uv5fn4SqjaJ3FcJwshb7uw== X-Google-Smtp-Source: AGHT+IG4mtinKYRovjVTFxm7G4VGhVxonO1blDjIuL/p+mHjiA2lU50det4bf4HpzSkaJJEYIah/ X-Received: by 2002:a2e:9cd3:0:b0:2ec:5075:83d2 with SMTP id 38308e7fff4ca-2ef1679c9e7mr8169931fa.22.1721439108955; Fri, 19 Jul 2024 18:31:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1721439108; cv=none; d=google.com; s=arc-20160816; b=lpCzw7xN8sJmJzuA4pDKPG5lOa9KcdzHhUUwKcZ69ISYf8dMx2w9wi4kUNcwrRwxer KI7+V3Ijsf9p0sS1751lmqD4QnDArgQqb6Q3XKUMMeeJFA4sRXCrHGix4qSpuU5KvgKG oqFZjvW42112c+NLh89BStubahA99/InSP9NQKBo2iey/S1fi4qiRZUG9xwusEJRQ8WD 9iOzcWMYhWF40AT6xBcKqqdnym+YxffZWXkh0YhYxpZYYCAq1Glkzve+embq84F6sZzE S38tPItcjMuxOKYzY8byFqD+Ob1iY+e5hx9BaKqx2ueUhO4vsRN6gu6Skm4bs5MKl0DH BrWg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; 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=3GyCnDKktZcvlPy2qKU7usRyciovE78KylA/O1Hz4L4=; fh=e5zN9xSzcxLA6bGo3lF+CqTbY/oLwzApV03EO/RBfgQ=; b=uOQHbYKs5VbiZYwd1D5DVZKHFQOEmNUrhhIfp0HN39DhA3qo0wqez7C7jdFpIoejks SaipPxMkT3EyLWS4MJgRTDQEeUQTn1jEk20zNrPpTh4pWgbZJNZ4rRD2zig4ooMC6Qbk Q+XyYta1O5o8uKFU5EWIqU8IwbqNW/EsfFC4jtNkbvZ3TUzISplTb4jLCSZP8dZvYvqQ bwgD66yrwpLOmZFczMRpk1bDFbvEsB4Zj0dMzS7tb78h4Vd1Z844EIWGPhY30jMPLgJz D3/k1kY7mj+oqvMBU/aJWnO9ZXX5tpXMC2tkiUDLdb5ROXXIdQ6tfcXMLDmdM00nAo6F TnlA==; 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=NiryB6jE; 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 4fb4d7f45d1cf-5a30c2f4536si1433494a12.419.2024.07.19.18.31.48; Fri, 19 Jul 2024 18:31:48 -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=NiryB6jE; 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 3076C68DAC6; Sat, 20 Jul 2024 03:53:01 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from relay9-d.mail.gandi.net (relay9-d.mail.gandi.net [217.70.183.199]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 7A73C68DA2A for <ffmpeg-devel@ffmpeg.org>; Sat, 20 Jul 2024 03:52:49 +0300 (EEST) Received: by mail.gandi.net (Postfix) with ESMTPSA id DD02DFF805 for <ffmpeg-devel@ffmpeg.org>; Sat, 20 Jul 2024 00:52:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=niedermayer.cc; s=gm1; t=1721436769; 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=SB84ornLtUlGTU8R3nsZaKTxvMZeJhuKBUTWjjkDmkg=; b=NiryB6jEok1sZUJflqP7+2ACqob6Z9dh6bJ060CmBMkhEdUoEukoXAWUJ6AwpYMH0VwYwi D1cBBq2iQDlMtW6eFaKvl87CX/a5kppNMNOSCn+im5P1/LaLbBZaeHvEi4WWdgaR7pm8Ok o5DFI7BUl0CDnpHcNgeGM3G4UGcNB8C0+ps4pQL28+J4177J9Di7ghqcw6morEl6Obs5dm PouBa4Rn2umXnxN+56ZZReO/7JKQv1eBvAHq+5ZLloSSamJIXKLMhpNvm+G1zTsapTWPX6 FDQzgOXujQOZa87VPFyWDBQIOj+MM35Hj/+lCIz3R/JbVRmCJPkcoLZsMOWXQw== From: Michael Niedermayer <michael@niedermayer.cc> To: FFmpeg development discussions and patches <ffmpeg-devel@ffmpeg.org> Date: Sat, 20 Jul 2024 02:52:38 +0200 Message-ID: <20240720005241.726089-8-michael@niedermayer.cc> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20240720005241.726089-1-michael@niedermayer.cc> References: <20240720005241.726089-1-michael@niedermayer.cc> MIME-Version: 1.0 X-GND-Sasl: michael@niedermayer.cc Subject: [FFmpeg-devel] [PATCH 08/11] avcodec/osq: fix integer overflow when applying factor 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: U+2TFoTL+15j |
Series |
[FFmpeg-devel,01/11] avcodec/alsdec: Clear shift_value
|
expand
|
diff --git a/libavcodec/osq.c b/libavcodec/osq.c index 42a46b25ce5..4e921896c0d 100644 --- a/libavcodec/osq.c +++ b/libavcodec/osq.c @@ -356,7 +356,7 @@ static int osq_decode_block(AVCodecContext *avctx, AVFrame *frame) const int nb_channels = avctx->ch_layout.nb_channels; const int nb_samples = frame->nb_samples; OSQContext *s = avctx->priv_data; - const int factor = s->factor; + const unsigned factor = s->factor; int ret, decorrelate, downsample; GetBitContext *gb = &s->gb;
Fixes: signed integer overflow: -35511773 * 256 cannot be represented in type 'int' Fixes: 70406/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_OSQ_fuzzer-6545326804434944 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(-)