(sorry I still have to use gmail web client)
From 4e5e49628556936d2970fba164121845c0ce3f36 Mon Sep 17 00:00:00 2001
From: Kostya Shishkov <[email protected]>
Date: Fri, 29 Nov 2013 09:15:00 +0100
Subject: [PATCH] go2meeting: disallow tile dimensions that are not multiple of
16
Original decoder seems to always use 176x128 tiles anyway and this helps
avoiding lots of issues with odd tile sizes in fuzzed files.
---
libavcodec/g2meet.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/libavcodec/g2meet.c b/libavcodec/g2meet.c
index 0b4a8b7..ad27c57 100644
--- a/libavcodec/g2meet.c
+++ b/libavcodec/g2meet.c
@@ -712,7 +712,8 @@ static int g2m_decode_frame(AVCodecContext *avctx, void
*data,
}
c->tile_width = bytestream2_get_be32(&bc);
c->tile_height = bytestream2_get_be32(&bc);
- if (!c->tile_width || !c->tile_height) {
+ if (!c->tile_width || !c->tile_height ||
+ ((c->tile_width | c->tile_height) & 0xF)) {
av_log(avctx, AV_LOG_ERROR,
"Invalid tile dimensions %dx%d\n",
c->tile_width, c->tile_height);
--
1.7.0.4
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel