[FFmpeg-devel] [PATCH] tools/target_{bsf, dec}_fuzzer: Stop skipping end of input

Michael Niedermayer michael at niedermayer.cc
Sat Aug 24 01:17:27 EEST 2024


On Fri, Aug 23, 2024 at 12:49:30PM +0100, Frank Plowman wrote:
> For the final input in a file, the while loop above will not break and
> as a result
> 
> data + sizeof(fuzz_tag) == end
> 
> when it exits.  There is an off-by-one error in the changed line,
> which is meant to handle this case.  The result is that the final 8
> bytes of all input files are skipped.
> 
> Signed-off-by: Frank Plowman <post at frankplowman.com>
> ---
>  tools/target_bsf_fuzzer.c | 2 +-
>  tools/target_dec_fuzzer.c | 2 +-
>  2 files changed, 2 insertions(+), 2 deletions(-)

this will alter behavior of past testcase
not sure if thats good

thx

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

What does censorship reveal? It reveals fear. -- Julian Assange
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20240824/ac336747/attachment.sig>


More information about the ffmpeg-devel mailing list