Commit 52884755 authored by Yi Luo's avatar Yi Luo
Browse files

tile_common.c: bounds checking on MODE_INFO array

Change-Id: I51d0a095c08c64a93b883d16805aea820a5761fa
parent b586de83
......@@ -134,6 +134,10 @@ void av1_setup_across_tile_boundary_info(const AV1_COMMON *const cm,
}
mi = mi_start + (row_diff - 1) * cm->mi_stride;
// explicit bounds checking
assert(mi + col_diff <= cm->mip + cm->mi_alloc_size);
for (col = 0; col < col_diff; ++col) {
mi->mbmi.boundary_info |= TILE_BOTTOM_BOUNDARY;
mi += 1;
......
Markdown is supported
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