aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/exr.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2016-05-19 03:15:41 +0200
committerMichael Niedermayer <michael@niedermayer.cc>2016-05-19 03:28:25 +0200
commitdf01a29c1b15850e350c977d1b96f83f30faa0ae (patch)
tree9d6cb14796e7591c05b0e20fcc75854376f470ef /libavcodec/exr.c
parent641dccc2aa5e0bf6b3c06998f9a7f24a5cf725e7 (diff)
downloadffmpeg-df01a29c1b15850e350c977d1b96f83f30faa0ae.tar.gz
avcodec/exr: Fix potential integer overflow
Fixes CID1361949 Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavcodec/exr.c')
-rw-r--r--libavcodec/exr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/exr.c b/libavcodec/exr.c
index ac6b598777..2c4f15efb0 100644
--- a/libavcodec/exr.c
+++ b/libavcodec/exr.c
@@ -1025,7 +1025,7 @@ static int decode_block(AVCodecContext *avctx, void *tdata,
td->ysize = FFMIN(s->tile_attr.ySize, s->ydelta - tileY * s->tile_attr.ySize);
td->xsize = FFMIN(s->tile_attr.xSize, s->xdelta - tileX * s->tile_attr.xSize);
- uncompressed_size = s->current_channel_offset * td->ysize * td->xsize;
+ uncompressed_size = s->current_channel_offset * (uint64_t)td->ysize * td->xsize;
if (col) { /* not the first tile of the line */
bxmin = 0; axmax = 0; /* doesn't add pixel at the left of the datawindow */