From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ffbox0-bg.ffmpeg.org (ffbox0-bg.ffmpeg.org [79.124.17.100]) by master.gitmailbox.com (Postfix) with ESMTPS id 40FD14ACCA for ; Mon, 22 Dec 2025 02:53:43 +0000 (UTC) Authentication-Results: ffbox; dkim=fail (body hash mismatch (got b'ct2sUs8rWj39nmi9GL3L7G+3OJokbMMHkPekf5wwl+A=', expected b'+kPShq3JXYhk3mImUvEDfkFhwOdawlY6XhZNY2CraJI=')) header.d=niedermayer.cc header.a=rsa-sha256 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ffmpeg.org; i=@ffmpeg.org; q=dns/txt; s=mail; t=1766372010; h=date : to : message-id : references : mime-version : in-reply-to : reply-to : subject : list-id : list-archive : list-archive : list-help : list-owner : list-post : list-subscribe : list-unsubscribe : from : cc : content-type : from; bh=l5+u0mA9pLcyh5bcOn8fB2s6OUOT1eyjWDEf/EYGi2w=; b=MMWNiBQCxPXNleZc8NAfMAubimqKrtndcgvmTBCeqYcbCpHN5fvGLmMqrdcdUy7e6liFk Tle6+fD52EWpZaEtkzmS1WH67FYCPmCGioNPQau/mXHP3wQY58DowNZA93zdrPNbE9zWkbZ otInjxlqz+Jl+uuhCwKdYfpNuzIqz7ieKaY8NjAfPLGn2W1LK+oFnq2G0oafYUcDQ1r9L0z b5oEpgBq4cDIBiJrsIxiRNM2jvLSXjL+nWp3bZlP+3o+Lqpsyo16BepvgBzHirsTa0zx0A/ LkKXXH8abqmhkincCtlG/vC8Ru+HJHQIZXKomFMhfdbt69zEVn+vrRUNl48w== Received: from [172.20.0.2] (unknown [172.19.0.4]) by ffbox0-bg.ffmpeg.org (Postfix) with ESMTP id 236F2690A29; Mon, 22 Dec 2025 04:53:30 +0200 (EET) ARC-Seal: i=1; cv=none; a=rsa-sha256; d=ffmpeg.org; s=arc; t=1766372001; b=NuL1egK4ybNPaCP95qYL0GFJPy/SjLrEh/AZqaDiYxtmQpQmP0ZjWKUTSN9Mv/oINdolv u7vGWvkw6rQPWcXDWPz0MeN7ZZ21cPKjmqANi1JgP5r878PCKDbFdbyThIfgdowOn28yuy6 /r+K6EoDRPmX1EPOMVvVblyXh3P9XxPlD94a2cywp/TIUVs7QhSUOe5JRVPAv6FN2Z9vV3k ZCjJ4e/9CHsLe95EfxiGUXGgYxvBkEGVL9NrAGdP1cI7t8YHq2NVSb5A3ozXNtCCOx6Xx7M 0LCaVMR3+ERmNE1Ly2oXnFWHPk4pU5xPkxdzOK1oiiWWfZnXk4nw+i67bP7w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=ffmpeg.org; s=arc; t=1766372001; h=from : sender : reply-to : subject : date : message-id : to : cc : mime-version : content-type : content-transfer-encoding : content-id : content-description : resent-date : resent-from : resent-sender : resent-to : resent-cc : resent-message-id : in-reply-to : references : list-id : list-help : list-unsubscribe : list-subscribe : list-post : list-owner : list-archive; bh=ct2sUs8rWj39nmi9GL3L7G+3OJokbMMHkPekf5wwl+A=; b=uMG52Ncnmd0NihVHy6m+DJg4cmI7iXIe62cI+E3jg7mvJ23BQ/CsjlacREcAEhbGFmDtz iAvL8+pItnxQ0lou64llaGnGPsCnBxUZuSdVN18aTNYwoJ+XIJTSGl49rh6MbSNtGDF/0du gjkecUGSpyDEySMQZbzSa9A462zeGP4LhpLuUVSE/XC4qFv6SMFiPUIQ7AubooCypxsO82k PbgHNIuoh6WiuIIZ/rVG1MZZM2y6O0BiUIy59IW3FCDn9IehFKG8RSR10+3c3FkGxi8gJQm /B/yktq0igPVdeC4PA5j2hmIbeTLQc8CKE+NGvWc5b7ZG9PsmbxDd5+IZQDw== ARC-Authentication-Results: i=1; ffmpeg.org; dkim=pass header.d=niedermayer.cc; arc=none; dmarc=none Authentication-Results: ffmpeg.org; dkim=pass header.d=niedermayer.cc; arc=none (Message is not ARC signed); dmarc=none Received: from relay5-d.mail.gandi.net (relay5-d.mail.gandi.net [217.70.183.197]) by ffbox0-bg.ffmpeg.org (Postfix) with ESMTPS id A5E5168E6D7 for ; Mon, 22 Dec 2025 04:53:08 +0200 (EET) Received: by mail.gandi.net (Postfix) with ESMTPSA id D5EB141CFD for ; Mon, 22 Dec 2025 02:53:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=niedermayer.cc; s=gm1; t=1766371988; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=+kPShq3JXYhk3mImUvEDfkFhwOdawlY6XhZNY2CraJI=; b=cSOQxT9uef9C/fhqxD/JqvogzhwDtVOWPVe2wh5ACmReRBkku2aZDykLMxuUq1sD343WIQ d8gk+EPeqfUf6EQJEfn7an/Enu5zSrnlsbpViiNydk36Pk/DGdFEB1PwTL6pAASX0VUsP/ 1Ua9YC6TArpqJeULC35F0squCYSwPLh/ukilGVNPIhpiaOAWnv0yuemSvU09P0wcBkzVZt SctqaPIVsKkxzMpoJgbUt1BcupYFQoUuahVopyKjNxJDiAn0yOAq9oxRieEqu1sZW/rQvI F71geFqB4Gcc/E/STugPCQxC6T/hmLC6Dl9rFaztl1VGofpCPmfDhuuMuE/0cA== Date: Mon, 22 Dec 2025 03:53:06 +0100 To: FFmpeg development discussions and patches Message-ID: References: MIME-Version: 1.0 In-Reply-To: X-GND-Sasl: michael@niedermayer.cc X-GND-State: clean X-GND-Score: -85 X-GND-Cause: gggruggvucftvghtrhhoucdtuddrgeefgedrtddtgdehheejlecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfitefpfffkpdcuggftfghnshhusghstghrihgsvgenuceurghilhhouhhtmecufedtudenucesvcftvggtihhpihgvnhhtshculddquddttddmnegfrhhlucfvnfffucdludehmdenucfjughrpeffhffvuffkfhggtggujgesghdtreertddtvdenucfhrhhomhepofhitghhrggvlhcupfhivgguvghrmhgrhigvrhcuoehmihgthhgrvghlsehnihgvuggvrhhmrgihvghrrdgttgeqnecuggftrfgrthhtvghrnhepffeltdefveefffehueeuhfdtjeeileeufedtiedtgfehteegffeffeetkefftdfhnecuffhomhgrihhnpehffhhmphgvghdrohhrghenucfkphepgedurdeiiedrieeirdehtdenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepihhnvghtpeeguddrieeirdeiiedrhedtpdhhvghloheplhhotggrlhhhohhsthdpmhgrihhlfhhrohhmpehmihgthhgrvghlsehnihgvuggvrhhmrgihvghrrdgttgdpqhhiugepffehgfeuudegudevhfffpdhmohguvgepshhmthhpohhuthdpnhgspghrtghpthhtohepuddprhgtphhtthhopehffhhmphgvghdquggvvhgvlhesfhhfmhhpvghgrdhorhhg Message-ID-Hash: Z622N55Q2YS5GD2DGHPHFZLA5CI2JHN4 X-Message-ID-Hash: Z622N55Q2YS5GD2DGHPHFZLA5CI2JHN4 X-MailFrom: SRS0=naGL=64=niedermayer.cc=michael@ffmpeg.org X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; header-match-ffmpeg-devel.ffmpeg.org-0; header-match-ffmpeg-devel.ffmpeg.org-1; header-match-ffmpeg-devel.ffmpeg.org-2; header-match-ffmpeg-devel.ffmpeg.org-3; emergency; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.10 Precedence: list Reply-To: FFmpeg development discussions and patches Subject: [FFmpeg-devel] Re: [PATCH] tools: add new fuzzers for avutil, avfilter, mux, network and cli List-Id: FFmpeg development discussions and patches Archived-At: Archived-At: List-Archive: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: From: Michael Niedermayer via ffmpeg-devel Cc: Michael Niedermayer Content-Type: multipart/mixed; boundary="===============8677858979898657473==" Archived-At: List-Archive: List-Post: --===============8677858979898657473== Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="O1Ib2xrF+ytDIwmb" Content-Disposition: inline --O1Ib2xrF+ytDIwmb Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi Leslie On Fri, Dec 19, 2025 at 08:11:34AM +0800, LP via ffmpeg-devel wrote: > Hello FFmpeg developers, >=20 > This patch adds several new fuzzer targets to the tools/ directory to > improve can you split this in a patch per fuzzer ? also you may want to submit it to forgejo: https://code.ffmpeg.org/ > test coverage for various components, including libavutil (AVOptions), > libavfilter, > muxers, network protocols, and the CLI options parsing. >=20 > It also introduces tools/run_fuzzer_loop.c, a simple harness that allows > running > these fuzzers in a loop without requiring a full libFuzzer environment. >=20 > I have verified that the new targets compile and run successfully. >=20 > Please find the patch attached. >=20 > Best, >=20 > Leslie [...] > + // Fill frame with fuzz data if available > + if (size > 0) { > + int copy_size =3D size; > + // Naive fill, just copy into first plane > + if (copy_size > frame->buf[0]->size) copy_size =3D frame->buf[0]= ->size; FFMIN() > + memcpy(frame->data[0], data, copy_size); > + } > + > + ret =3D av_buffersrc_add_frame(src_ctx, frame); > + if (ret < 0) goto end; > + > + // Receive output > + while (1) { > + AVFrame *out =3D av_frame_alloc(); > + ret =3D av_buffersink_get_frame(sink_ctx, out); > + av_frame_free(&out); > + if (ret < 0) break; > + } can be simplified with while(ret >=3D 0) > + > +end: > + if (options_str) av_free(options_str); the if() is unneeded [...] --=20 Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB Why not whip the teacher when the pupil misbehaves? -- Diogenes of Sinope --O1Ib2xrF+ytDIwmb Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EABEKAB0WIQSf8hKLFH72cwut8TNhHseHBAsPqwUCaUiyjwAKCRBhHseHBAsP q4czAJ4zQ5uw0jVRktpQ1qV+V4nbOgxEFACfUeGU7rui6QB/V/EdIdSH//joDlw= =8JYL -----END PGP SIGNATURE----- --O1Ib2xrF+ytDIwmb-- --===============8677858979898657473== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ ffmpeg-devel mailing list -- ffmpeg-devel@ffmpeg.org To unsubscribe send an email to ffmpeg-devel-leave@ffmpeg.org --===============8677858979898657473==--