]> git.sesse.net Git - ffmpeg/commit
avcodec/v210dec: move the stride read after its fully initialized
authorMichael Niedermayer <michael@niedermayer.cc>
Sun, 1 Dec 2019 22:26:47 +0000 (23:26 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Thu, 12 Dec 2019 18:25:33 +0000 (19:25 +0100)
commitab3044368f3fc10a3d43718a2bd664be8ce9fdb5
tree08213999825fd8dde4f06d7f399f7109c9aa089c
parent7aef2f59b518defea168cde51c7df0c43408286a
avcodec/v210dec: move the stride read after its fully initialized

Fixes: out of array read
Fixes: 19129/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_V210_fuzzer-5068171023482880
Maybe fixes: 19130/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_V210_fuzzer-5637264407527424

Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Reviewed-by: Limin Wang <lance.lmwang@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/v210dec.c