From patchwork Sun Jun 30 23:12:44 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Niedermayer X-Patchwork-Id: 50228 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a59:cc64:0:b0:482:c625:d099 with SMTP id k4csp1465205vqv; Sun, 30 Jun 2024 16:32:53 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCX1/SUceSGkfnwJw7dEUNU/AWt6SphpAbdonHi65eOxRSj8YlmQb9JiSyKEjWhRVWinMRLhiyiqKPeg/8V6p/8Mo3emyRbd1cVopw== X-Google-Smtp-Source: AGHT+IHbfQUUjZ7IybpxYcRwdbra9rkuh/MvPvkSU0jQ2lPP/JI+msCgm3FtZ7Xj2Gi04JcQl/+x X-Received: by 2002:a05:6512:1251:b0:52c:cda0:18bf with SMTP id 2adb3069b0e04-52e8264e643mr3186135e87.4.1719790372342; Sun, 30 Jun 2024 16:32:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1719790372; cv=none; d=google.com; s=arc-20160816; b=WWhop6uv2QYmGA2hF8xGvMaBsnZdpm+xkq2jKwKSlGkFf/0r20h66T0SXHG1vGpUwF aXom9CVK12DQsF4YWAobP4GV/00ErwpcxdLjj2PcQUVgri4z79284c7/XWJB0thkxDqg dFA8vO2W0yeoJJZT0nsm7tqg/IPye5oPiZiEd5+jDc6UoxiFFYsEyNFNAupGbMgm4VeM grzrNU2p+y7mC1F0OsW4by5o64A90djD3KseJNOXjRE4ZshFDEST4sCpzTLHlXrb8nqn gcfohvu1gz7BWJUvoP/2BycoDnZq6Qm4e5jyHcGapcfap07/TYW6Pi7OJYp7OlbfaMP1 Vc+g== 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=ZD1ggBQpKTRv46tBLsPTgRUbLxr+66f/WTYrx+cmfEY=; fh=e5zN9xSzcxLA6bGo3lF+CqTbY/oLwzApV03EO/RBfgQ=; b=TozrDZ03JpTzsMs1GMAr+xFZT/BoXLJGPN660Ctt31Ep/uaX+N6/O1+o49tto6Ayp4 8P/XZSKsjMDL7X5DJwu1c2wfpGl9vjO9SEt8s1pMmQGn6UHZXFV39Gfd03GGrHyjMzpf JZOfCdRfZJplmInAySoRrKqvNVB7DMT805m2gE3EKMJgvjUSRcwTeHXYbaltUW5K5WhD e3YPm/XZnxQvHKuBn2i7/25fCOOcmA5w3J3jG8G2Pd4PYjPTRenvkmaso0AX81Hs//i2 QyZdcD9VCthP4p1Itm6sseXBTSixl55ktwJ9bbGDxrvhIhXvOvpCCyKqnc8temKirr1P zxWA==; 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=IODwECMv; 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: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id 2adb3069b0e04-52e7ab31c7csi1951511e87.515.2024.06.30.16.32.51; Sun, 30 Jun 2024 16:32:52 -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=IODwECMv; 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 6756E68C73D; Mon, 1 Jul 2024 02:13:28 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org 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 EE2DF68D688 for ; Mon, 1 Jul 2024 02:13:12 +0300 (EEST) Received: by mail.gandi.net (Postfix) with ESMTPSA id 454F0E0004 for ; Sun, 30 Jun 2024 23:13:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=niedermayer.cc; s=gm1; t=1719789192; 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=tIozvnd5hMacNKW9u/60XN3/w0QISmVJkqXi+liEoUA=; b=IODwECMvY35dZI+pX/170iSKjA/HoEqXhXH+KwGnOj7GYqQ4XzMzdOV3Q6hLAQvL/pJP3D 5NCNsXShEm95G+iSD81lnwLC4ZbwYZvwAex0NSwET/WzK0scOKWUofmE2NP9stDySXSOFl sWXdzGgtCsrZh2EfT88YobUBchCbMOFKxovfOhDy/mjw1b/fPPdfgsNgN/GOLhxSyikr75 oaFUBPgqI7VZxjhCJjIfKKCWjcmL9To6gf03OJxGUADfpW0rZLV6DaxadAtPg6dQkBlFQE ykubHKX7bjNIpdSByUfk5vNJbYjbJ0tY+sH8WBzNZemObjJ8t4S1fhaYviwl5w== From: Michael Niedermayer To: FFmpeg development discussions and patches Date: Mon, 1 Jul 2024 01:12:44 +0200 Message-ID: <20240630231306.3779027-5-michael@niedermayer.cc> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20240630231306.3779027-1-michael@niedermayer.cc> References: <20240630231306.3779027-1-michael@niedermayer.cc> MIME-Version: 1.0 X-GND-Sasl: michael@niedermayer.cc Subject: [FFmpeg-devel] [PATCH 05/11] tools/target_enc_fuzzer: A64MULTI5 encoder is very slow, check and adjust threshold 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 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" X-TUID: YAB3+7y35TPj Fixes: Timeout Fixes: 68999/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_A64MULTI5_fuzzer-5078418784845824 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer --- tools/target_enc_fuzzer.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/target_enc_fuzzer.c b/tools/target_enc_fuzzer.c index c4c2df93a9b..059d7830710 100644 --- a/tools/target_enc_fuzzer.c +++ b/tools/target_enc_fuzzer.c @@ -96,6 +96,7 @@ int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) { maxpixels = maxpixels_per_frame * maxiteration; switch (c->p.id) { case AV_CODEC_ID_A64_MULTI: maxpixels /= 65536; break; + case AV_CODEC_ID_A64_MULTI5: maxpixels /= 65536; break; } maxpixels_per_frame = FFMIN(maxpixels_per_frame , maxpixels);