Commit a07a7bb1 authored by Adrian Grange's avatar Adrian Grange Committed by Gerrit Code Review
Browse files

Merge "Re-introduce frame size check inadvertantly deleted"

Showing with 5 additions and 0 deletions
...@@ -621,6 +621,11 @@ static void setup_display_size(VP9_COMMON *cm, struct vp9_read_bit_buffer *rb) { ...@@ -621,6 +621,11 @@ static void setup_display_size(VP9_COMMON *cm, struct vp9_read_bit_buffer *rb) {
} }
static void resize_context_buffers(VP9_COMMON *cm, int width, int height) { static void resize_context_buffers(VP9_COMMON *cm, int width, int height) {
#if CONFIG_SIZE_LIMIT
if (width > DECODE_WIDTH_LIMIT || height > DECODE_HEIGHT_LIMIT)
vpx_internal_error(&cm->error, VPX_CODEC_CORRUPT_FRAME,
"Width and height beyond allowed size.");
#endif
if (cm->width != width || cm->height != height) { if (cm->width != width || cm->height != height) {
// Change in frame size (assumption: color format does not change). // Change in frame size (assumption: color format does not change).
if (cm->width == 0 || cm->height == 0 || if (cm->width == 0 || cm->height == 0 ||
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment