tools/target_dec_fuzzer: Also fuzz codec_tag
authorMichael Niedermayer <michael@niedermayer.cc>
Sat, 12 Oct 2019 20:34:02 +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 8def3c9..0047c9e 100644 (file)
@@ -190,6 +190,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);
+        ctx->codec_tag                          = bytestream2_get_le32(&gbc);
 
         if (extradata_size < size) {
             ctx->extradata = av_mallocz(extradata_size + AV_INPUT_BUFFER_PADDING_SIZE);