Message ID | 20240919225639.2376418-3-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 bt20csp619987vqb; Thu, 19 Sep 2024 15:57:14 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCWmt+tJataVVIKYWF5A73GY/sxxWLpsDbDTX24H2K0FF3Lq6s8EAhIqYvVm+POeFu8uJHYFwgqsek446SwmoYtY@gmail.com X-Google-Smtp-Source: AGHT+IH1o/h6JlNY5tkH2CCfNvUgLA7OqAklW70OmLyvW9gERi2iY0tdb97jooeQoZdQ+vrNyuR5 X-Received: by 2002:a05:651c:2213:b0:2f7:7e07:770f with SMTP id 38308e7fff4ca-2f7c3d09951mr17251151fa.3.1726786633944; Thu, 19 Sep 2024 15:57:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1726786633; cv=none; d=google.com; s=arc-20240605; b=IasPYn9AeStodYrMjxohkGi1jf/jBbLQc2m1EvoceJY5HCfb5QkEbCobMdwyFVIw0t mLh0gYElJ3HZSeVlJgPq6q6NszXtxFKIExoy5P7dtVN+49+BSf+urqSWoW6dyw+/0M1+ h3Kk0lh3+/FqUN93fikwM9a3xPUEybqYtqnV3touTS3uuMfI+VpHOlx8qnpdshfwfnFt UwIW57fwD/k92MFb6ooJZ+W19TuI4I0MtGxRJarvccnrhaLSkSgA7bpzCLfhhPanif5s kOoiNZ+i3p9ESmgpcOnc8Fxj7gpJdjMgp6NNemWqyauulF14/zxpK5QU63lJs/Gv1Ao5 1EOQ== 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=4BHXOGQQ4kru3yKHRcJdHgzLGoM1FjzA0ey9WMgbZIs=; fh=e5zN9xSzcxLA6bGo3lF+CqTbY/oLwzApV03EO/RBfgQ=; b=XXud9jWxwNYHjFEdKZbD9M8VFz7bYcrtC6xBWVB/Nwo29/HRe7ocobF5vmZ1yPhlSa TxXd4UgxC8fXTck8/RZwhoLTKF5YCkPWTjjuI7shh0/kdP4FOA6B5i58dt/ya45zu3w+ YJ0SvdgdiHR2DZ6KC+AkBgYu0Wj9hS0eXLtNspvbArDP7x/5RK0D+E/zSm/fv4+HVPe5 Kx1d9WPuzDoHaeWrnkgZf7lOJ4+tu1yGVvfBxzpb1UEbs+a8V/5O546NMKVQo6AaOe2N 314ItTQP0dcTgw4WvPzvN3Czk3VmGBDE6NuTTzyJzlt7vsXkDk4HxI3O/R/F/YBbbZkD 0KNw==; 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="eNn/wPQJ"; 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 38308e7fff4ca-2f79d47bf77si40240631fa.557.2024.09.19.15.57.13; Thu, 19 Sep 2024 15:57:13 -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="eNn/wPQJ"; 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 C3BBF68DCFE; Fri, 20 Sep 2024 01:56:49 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from relay5-d.mail.gandi.net (relay5-d.mail.gandi.net [217.70.183.197]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id DA9C468B32F for <ffmpeg-devel@ffmpeg.org>; Fri, 20 Sep 2024 01:56:42 +0300 (EEST) Received: by mail.gandi.net (Postfix) with ESMTPSA id 8AF731C0003 for <ffmpeg-devel@ffmpeg.org>; Thu, 19 Sep 2024 22:56:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=niedermayer.cc; s=gm1; t=1726786601; 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=56TGZXvgZs+6J+eMMwLCRqCVUUP8PMYHGVuNnOZN8iI=; b=eNn/wPQJaq4GAk08gMB0CHAuDiZ08yCUoKEcSaIFBqGmuLzdZNUhk2H0MPd6EUZUqvqhe0 J568ydMDw0Ng4o+wBMls6abint17F04DsoimLACVw85ZIKedIiN8m/SEdxTVkE4+wM4Y7t MScOlFWPfv/LlNOuhJ00yijTEDN2peyXsZe5u2tA1Uq4vrsJ95VUkc+MlLFsi3ugNtpRUZ seDn9/oJPdUqAqtMxjzq8QwZchqmatS+/3ai86UUFJfzH1HfCcw54uqrqQuw3WpNLJeYYt q2rOgr6g1jxJGY4kzP9Ez90ZBhBy61qr6spn267ngWaeUJzUfzfR/jehuzMqHg== From: Michael Niedermayer <michael@niedermayer.cc> To: FFmpeg development discussions and patches <ffmpeg-devel@ffmpeg.org> Date: Fri, 20 Sep 2024 00:56:33 +0200 Message-ID: <20240919225639.2376418-3-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 3/9] avcodec/jfdctint_template: use unsigned z* in row_fdct() 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: 24LUzbnotgaL |
Series |
None
|
expand
|
diff --git a/libavcodec/jfdctint_template.c b/libavcodec/jfdctint_template.c index aa2680132ee..58827b677e6 100644 --- a/libavcodec/jfdctint_template.c +++ b/libavcodec/jfdctint_template.c @@ -183,7 +183,7 @@ static av_always_inline void FUNC(row_fdct)(int16_t *data) { int tmp0, tmp1, tmp2, tmp3, tmp4, tmp5, tmp6, tmp7; int tmp10, tmp11, tmp12, tmp13; - int z1, z2, z3, z4, z5; + unsigned z1, z2, z3, z4, z5; int16_t *dataptr; int ctr;
Fixes: signed integer overflow: 856827136 + 2123580416 cannot be represented in type 'int' Fixes: 70772/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_PRORES_KS_fuzzer-5180569961431040 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> --- libavcodec/jfdctint_template.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)