diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2015-09-04 12:10:02 +0200 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2015-11-19 03:51:38 +0100 |
commit | 9a90f61d998ad314d431b2b6631ac676afc9d778 (patch) | |
tree | 77f6c41e71ede7ae48cdf186d836a40fcb187354 | |
parent | a2e0602157ad4813f6d1709d805429206ef70f43 (diff) | |
download | ffmpeg-9a90f61d998ad314d431b2b6631ac676afc9d778.tar.gz |
avcodec/g2meet: Fix potential overflow in tile dimensions check
Fixes CID1322351
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit 71ec8e1ed6cf4947e204e3e4b5929a44c054f5fb)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
-rw-r--r-- | libavcodec/g2meet.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/g2meet.c b/libavcodec/g2meet.c index 67bb1fd31a..2c86cd5df0 100644 --- a/libavcodec/g2meet.c +++ b/libavcodec/g2meet.c @@ -738,7 +738,7 @@ static int g2m_decode_frame(AVCodecContext *avctx, void *data, c->tile_height = bytestream2_get_be32(&bc); if (c->tile_width <= 0 || c->tile_height <= 0 || ((c->tile_width | c->tile_height) & 0xF) || - c->tile_width * 4LL * c->tile_height >= INT_MAX + c->tile_width * (uint64_t)c->tile_height >= INT_MAX / 4 ) { av_log(avctx, AV_LOG_ERROR, "Invalid tile dimensions %dx%d\n", |