diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2017-01-08 16:37:56 +0100 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2017-01-10 00:55:15 +0100 |
commit | f48b6b8b91d63148ef50d096688ed7226cd6ddf4 (patch) | |
tree | 98f4ffede4effeec4b4c3a98bb2e999121ca57d2 /libavcodec | |
parent | 890320b1c084e69456ebeaec66dd471671a40d09 (diff) | |
download | ffmpeg-f48b6b8b91d63148ef50d096688ed7226cd6ddf4.tar.gz |
avcodec/tiff: Perform multiply in tiff_unpack_lzma() as 64bit
This should make no difference as the value should not be able to be that large
but its more correct this way
Fixes CID1348138
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/tiff.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/tiff.c b/libavcodec/tiff.c index 7ccda51404..efbd9791a5 100644 --- a/libavcodec/tiff.c +++ b/libavcodec/tiff.c @@ -408,7 +408,7 @@ static int tiff_unpack_lzma(TiffContext *s, AVFrame *p, uint8_t *dst, int stride const uint8_t *src, int size, int width, int lines, int strip_start, int is_yuv) { - uint64_t outlen = width * lines; + uint64_t outlen = width * (uint64_t)lines; int ret, line; uint8_t *buf = av_malloc(outlen); if (!buf) |