tools/target_dec_fuzzer: Also fuzz block_align
authorMichael Niedermayer <michael@niedermayer.cc>
Sat, 12 Oct 2019 20:34:00 +0000 (22:34 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Mon, 14 Oct 2019 19:16:00 +0000 (21:16 +0200)
This should improve coverage

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
tools/target_dec_fuzzer.c

index a2c59be..99e89ab 100644 (file)
@@ -185,6 +185,7 @@ int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
 
         ctx->sample_rate                        = bytestream2_get_le32(&gbc);
         ctx->channels                           = (unsigned)bytestream2_get_le32(&gbc) % FF_SANE_NB_CHANNELS;
+        ctx->block_align                        = bytestream2_get_le32(&gbc);
 
         if (extradata_size < size) {
             ctx->extradata = av_mallocz(extradata_size + AV_INPUT_BUFFER_PADDING_SIZE);