]> git.sesse.net Git - ffmpeg/commit
avformat/vividas: better check of current_sb_entry
authorMichael Niedermayer <michael@niedermayer.cc>
Wed, 21 Oct 2020 21:05:41 +0000 (23:05 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Fri, 30 Oct 2020 16:49:51 +0000 (17:49 +0100)
commitb848baef0dc42d97a5c1ab975cc8994a265b88ae
treeef17b53f0402eb5173be8ba972a7d971fb23088d
parent3588e2e6b05ba92f0907e9ffe263c2e65d53e346
avformat/vividas: better check of current_sb_entry

This is the simplest fix for the problem, it is possible to instead check
this when the variables are set and propagate errors and then fail earlier

Fixes: out of array access
Fixes: 26490/clusterfuzz-testcase-minimized-ffmpeg_dem_VIVIDAS_fuzzer-5723367078100992
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavformat/vividas.c