avcodec/libfdk-aacdec: Correct buffer_size parameter
authorMichael Niedermayer <michael@niedermayer.cc>
Thu, 25 May 2017 01:21:50 +0000 (03:21 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Sun, 28 May 2017 01:08:33 +0000 (03:08 +0200)
commitca6776a993903dbcfef5ae8a18556c40ecf83e1c
tree461192fcaf7eb265264802e98d4d1b5ff47388c1
parent7c36ee216f1e668e2c2af1573bd9dbbb2a501f48
avcodec/libfdk-aacdec: Correct buffer_size parameter

the timeDataSize argument to aacDecoder_DecodeFrame() seems undocumented and until
2016 04 (203e3f28fbebec7011342017fafc2a0bda0ce530) unused.
after that commit libfdk-aacdec interprets it as size in sample units and memsets that on error.
FFmpeg as well as others (like GStreamer) did interpret it as size in bytes

Fixes: 1442/clusterfuzz-testcase-minimized-4540199973421056 (This requires recent libfdk to reproduce)

Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/libfdk-aacdec.c