diff options
author | Paul B Mahol <onemda@gmail.com> | 2018-09-09 11:33:17 +0200 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2018-09-09 11:33:17 +0200 |
commit | 158043bae84bdcb988ecf423bf4b2eea5b12fb6e (patch) | |
tree | 8f0e2aa2349356c79a697a77ef75a14719166432 /libavcodec/gifdec.c | |
parent | 4cfb01d6ae545cec4a507113a6cbcf3b6e727e94 (diff) | |
download | ffmpeg-158043bae84bdcb988ecf423bf4b2eea5b12fb6e.tar.gz |
avcodec/gifdec: check ff_lzw_decode_open() for failure
Diffstat (limited to 'libavcodec/gifdec.c')
-rw-r--r-- | libavcodec/gifdec.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/gifdec.c b/libavcodec/gifdec.c index 2eeed4c4c7..a3116e417e 100644 --- a/libavcodec/gifdec.c +++ b/libavcodec/gifdec.c @@ -451,6 +451,8 @@ static av_cold int gif_decode_init(AVCodecContext *avctx) if (!s->frame) return AVERROR(ENOMEM); ff_lzw_decode_open(&s->lzw); + if (!s->lzw) + return AVERROR(ENOMEM); return 0; } |