avcodec/bitpacked: add missing comma to codec tags
authorMichael Niedermayer <michael@niedermayer.cc>
Wed, 3 Jun 2020 17:17:34 +0000 (19:17 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Thu, 4 Jun 2020 17:22:29 +0000 (19:22 +0200)
Fixes: array end overread
Fixes: 22395/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_BITPACKED_fuzzer-5760940300828672

Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Reviewed-by: James Darnley <james.darnley@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/bitpacked.c

index be7d1e3..952ba73 100644 (file)
@@ -147,7 +147,7 @@ AVCodec ff_bitpacked_decoder = {
     .decode = bitpacked_decode,
     .capabilities = AV_CODEC_CAP_EXPERIMENTAL,
     .codec_tags     = (const uint32_t []){
-        MKTAG('U', 'Y', 'V', 'Y')
+        MKTAG('U', 'Y', 'V', 'Y'),
         FF_CODEC_TAGS_END,
     },
 };