avcodec/lzf: Consider the needed size in reallocation
authorMichael Niedermayer <michael@niedermayer.cc>
Thu, 28 May 2020 16:08:57 +0000 (18:08 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Sun, 7 Jun 2020 22:21:15 +0000 (00:21 +0200)
commit292b9b93a50aa0622e33013de9f2ddc130bef671
treed64f53adbd978569f222412a2a988b2fd0211246
parent5bd5c3108786bf69f108c55c375f1956f67ca7a4
avcodec/lzf: Consider the needed size in reallocation

Fixes: NULL pointer dereference
Fixes: 22381/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_NOTCHLC_fuzzer-5659879921680384.fuzz

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