[FFmpeg-cvslog] avcodec/exr: Fix potential integer overflow
Michael Niedermayer
git at videolan.org
Thu May 19 03:30:19 CEST 2016
ffmpeg | branch: master | Michael Niedermayer <michael at niedermayer.cc> | Thu May 19 03:15:41 2016 +0200| [df01a29c1b15850e350c977d1b96f83f30faa0ae] | committer: Michael Niedermayer
avcodec/exr: Fix potential integer overflow
Fixes CID1361949
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=df01a29c1b15850e350c977d1b96f83f30faa0ae
---
libavcodec/exr.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavcodec/exr.c b/libavcodec/exr.c
index ac6b598..2c4f15e 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 */
More information about the ffmpeg-cvslog
mailing list