[FFmpeg-devel,1/3] tools/target_dec_fuzzer: Adjust GDV pixel threshold down by a factor of 2

Submitted by Michael Niedermayer on Aug. 14, 2019, 7 a.m.

Details

Message ID 20190814070008.8677-1-michael@niedermayer.cc
State New
Headers show

Commit Message

Michael Niedermayer Aug. 14, 2019, 7 a.m.
Fixes: Timeout (7sec -> 1sec)
Fixes: 14709/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_GDV_fuzzer-5704215281795072

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 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Michael Niedermayer Aug. 29, 2019, 1:29 p.m.
On Wed, Aug 14, 2019 at 09:00:06AM +0200, Michael Niedermayer wrote:
> Fixes: Timeout (7sec -> 1sec)
> Fixes: 14709/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_GDV_fuzzer-5704215281795072
> 
> 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 | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

will apply patchset

[...]

Patch hide | download patch | download mbox

diff --git a/tools/target_dec_fuzzer.c b/tools/target_dec_fuzzer.c
index e6eed88781..b3a12f8a63 100644
--- a/tools/target_dec_fuzzer.c
+++ b/tools/target_dec_fuzzer.c
@@ -173,7 +173,7 @@  int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
     case AV_CODEC_ID_QTRLE:     maxpixels /= 16;  break;
     case AV_CODEC_ID_GIF:       maxpixels /= 16;  break;
         // Performs slow frame rescaling in C
-    case AV_CODEC_ID_GDV:       maxpixels /= 256; break;
+    case AV_CODEC_ID_GDV:       maxpixels /= 512; break;
         // Postprocessing in C
     case AV_CODEC_ID_HNM4_VIDEO:maxpixels /= 128; break;
     }