diff options
author | Paul B Mahol <onemda@gmail.com> | 2018-09-09 11:38:33 +0200 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2018-09-09 11:38:33 +0200 |
commit | 05df39cf3f818b9dd28df450c00289cf8f276898 (patch) | |
tree | 45170e0eb4d3bd8d22754a35e0232aeda7cd9394 /libavcodec/tiff.c | |
parent | 39cfb722ee7307837b0a58f3825f5513860adee6 (diff) | |
download | ffmpeg-05df39cf3f818b9dd28df450c00289cf8f276898.tar.gz |
avcodec/tiff: check ff_lzw_decode_open() for failure
Diffstat (limited to 'libavcodec/tiff.c')
-rw-r--r-- | libavcodec/tiff.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/tiff.c b/libavcodec/tiff.c index 1b332a754d..cfe0c27714 100644 --- a/libavcodec/tiff.c +++ b/libavcodec/tiff.c @@ -1403,6 +1403,8 @@ static av_cold int tiff_init(AVCodecContext *avctx) s->subsampling[1] = 1; s->avctx = avctx; ff_lzw_decode_open(&s->lzw); + if (!s->lzw) + return AVERROR(ENOMEM); ff_ccitt_unpack_init(); return 0; |