diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2019-02-17 20:43:28 +0100 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2019-02-25 18:03:24 +0100 |
commit | 32d022d26db44cf153ab953360bc995976cc695b (patch) | |
tree | 7deb494fd7a1a614bd4d4af77fba36dbb76ce646 /libavcodec | |
parent | 160851bceed719c45459c64ab62b8e5bc130e2ee (diff) | |
download | ffmpeg-32d022d26db44cf153ab953360bc995976cc695b.tar.gz |
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>
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/mjpegdec.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/mjpegdec.c b/libavcodec/mjpegdec.c index 902b8eb7cb..e82c185433 100644 --- a/libavcodec/mjpegdec.c +++ b/libavcodec/mjpegdec.c @@ -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; |