mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-03-17 20:17:55 +02:00
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> (cherry picked from commit f48b6b8b91d63148ef50d096688ed7226cd6ddf4) Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
0a13449b28
commit
cc4a13b8a7
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user