avcodec/assdec: undefined use of memcpy()
authorMichael Niedermayer <michael@niedermayer.cc>
Wed, 24 Jul 2019 20:55:15 +0000 (22:55 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Fri, 26 Jul 2019 23:43:00 +0000 (01:43 +0200)
commit47b6ca0b022a413e392707464f2423795aa89bfb
treef4239b91c099116e8bed3f4733eceed172b7cd03
parent38b6c48c4300343f4703019a90a332773e64e11b
avcodec/assdec: undefined use of memcpy()

Fixes: null pointer passed as argument 2, which is declared to never be null
Fixes: 16008/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_SSA_fuzzer-5650582821404672 (this is a separate issue found in this testcase)

Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/assdec.c