mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-27 01:42:20 +00:00
avcodec/mjpegdec: Fix stereo3d memleak
Fixes: 12937/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_THP_fuzzer-5714945346371584 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
160851bcee
commit
32d022d26d
@ -1903,6 +1903,7 @@ static int mjpeg_decode_app(MJpegDecodeContext *s)
|
||||
type = get_bits(&s->gb, 8);
|
||||
len -= 4;
|
||||
|
||||
av_freep(&s->stereo3d);
|
||||
s->stereo3d = av_stereo3d_alloc();
|
||||
if (!s->stereo3d) {
|
||||
goto out;
|
||||
|
Loading…
Reference in New Issue
Block a user