Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2018-09-09 12:38:33 +0300
committerPaul B Mahol <onemda@gmail.com>2018-09-09 12:38:33 +0300
commit05df39cf3f818b9dd28df450c00289cf8f276898 (patch)
tree45170e0eb4d3bd8d22754a35e0232aeda7cd9394 /libavcodec/tiff.c
parent39cfb722ee7307837b0a58f3825f5513860adee6 (diff)
avcodec/tiff: check ff_lzw_decode_open() for failure
Diffstat (limited to 'libavcodec/tiff.c')
-rw-r--r--libavcodec/tiff.c2
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;