diff mbox series

[FFmpeg-devel,2/2] tools/target_dec_fuzzer: Add threshold for IFF_ILBM

Message ID 20200122233639.28302-2-michael@niedermayer.cc
State Accepted
Headers show
Series [FFmpeg-devel,1/2] avcodec/dpcm: Fix integer overflow in AV_CODEC_ID_GREMLIN_DPCM
Related show

Checks

Context Check Description
andriy/ffmpeg-patchwork pending
andriy/ffmpeg-patchwork success Applied patch
andriy/ffmpeg-patchwork success Configure finished
andriy/ffmpeg-patchwork success Make finished
andriy/ffmpeg-patchwork success Make fate finished

Commit Message

Michael Niedermayer Jan. 22, 2020, 11:36 p.m. UTC
Fixes: Timeout (32 -> 1sec)
Fixes: 20138/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_IFF_ILBM_fuzzer-5634665251864576

Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
---
 tools/target_dec_fuzzer.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Peter Ross Jan. 28, 2020, 8:48 p.m. UTC | #1
On Thu, Jan 23, 2020 at 12:36:39AM +0100, Michael Niedermayer wrote:
> Fixes: Timeout (32 -> 1sec)
> Fixes: 20138/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_IFF_ILBM_fuzzer-5634665251864576
> 
> Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
> ---
>  tools/target_dec_fuzzer.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/tools/target_dec_fuzzer.c b/tools/target_dec_fuzzer.c
> index a3d784a019..e554558b69 100644
> --- a/tools/target_dec_fuzzer.c
> +++ b/tools/target_dec_fuzzer.c
> @@ -143,6 +143,7 @@ int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
>      case AV_CODEC_ID_DST:       maxsamples /= 8192; break;
>      case AV_CODEC_ID_DXV:       maxpixels /= 32;  break;
>      case AV_CODEC_ID_FFWAVESYNTH: maxsamples /= 16384; break;
> +    case AV_CODEC_ID_IFF_ILBM:  maxpixels /= 128; break;
>      case AV_CODEC_ID_MSRLE:     maxpixels /= 16;  break;
>      case AV_CODEC_ID_QTRLE:     maxpixels /= 16;  break;
>      case AV_CODEC_ID_RASC:      maxpixels /= 16;  break;

approve.

-- Peter
(A907 E02F A6E5 0CD2 34CD 20D2 6760 79C5 AC40 DD6B)
Michael Niedermayer Jan. 29, 2020, 11:51 a.m. UTC | #2
On Wed, Jan 29, 2020 at 07:48:54AM +1100, Peter Ross wrote:
> On Thu, Jan 23, 2020 at 12:36:39AM +0100, Michael Niedermayer wrote:
> > Fixes: Timeout (32 -> 1sec)
> > Fixes: 20138/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_IFF_ILBM_fuzzer-5634665251864576
> > 
> > Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
> > Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
> > ---
> >  tools/target_dec_fuzzer.c | 1 +
> >  1 file changed, 1 insertion(+)
> > 
> > diff --git a/tools/target_dec_fuzzer.c b/tools/target_dec_fuzzer.c
> > index a3d784a019..e554558b69 100644
> > --- a/tools/target_dec_fuzzer.c
> > +++ b/tools/target_dec_fuzzer.c
> > @@ -143,6 +143,7 @@ int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
> >      case AV_CODEC_ID_DST:       maxsamples /= 8192; break;
> >      case AV_CODEC_ID_DXV:       maxpixels /= 32;  break;
> >      case AV_CODEC_ID_FFWAVESYNTH: maxsamples /= 16384; break;
> > +    case AV_CODEC_ID_IFF_ILBM:  maxpixels /= 128; break;
> >      case AV_CODEC_ID_MSRLE:     maxpixels /= 16;  break;
> >      case AV_CODEC_ID_QTRLE:     maxpixels /= 16;  break;
> >      case AV_CODEC_ID_RASC:      maxpixels /= 16;  break;
> 
> approve.

will apply

thx

[...]
diff mbox series

Patch

diff --git a/tools/target_dec_fuzzer.c b/tools/target_dec_fuzzer.c
index a3d784a019..e554558b69 100644
--- a/tools/target_dec_fuzzer.c
+++ b/tools/target_dec_fuzzer.c
@@ -143,6 +143,7 @@  int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
     case AV_CODEC_ID_DST:       maxsamples /= 8192; break;
     case AV_CODEC_ID_DXV:       maxpixels /= 32;  break;
     case AV_CODEC_ID_FFWAVESYNTH: maxsamples /= 16384; break;
+    case AV_CODEC_ID_IFF_ILBM:  maxpixels /= 128; break;
     case AV_CODEC_ID_MSRLE:     maxpixels /= 16;  break;
     case AV_CODEC_ID_QTRLE:     maxpixels /= 16;  break;
     case AV_CODEC_ID_RASC:      maxpixels /= 16;  break;