Commit 7e9f59e0 authored by Yaowu Xu's avatar Yaowu Xu

Avoid out-of-range memory access

The commit increase size of a few heap allocations to make sure later
access is not out of bounds.

BUG=aomedia:383

Change-Id: Iadb08faa1e55be361dd3d4adaafeb85cecf23bbb
parent de18e2b5
......@@ -87,9 +87,9 @@ class AV1SelfguidedFilterTest
const int NUM_ITERS = 81;
int i, j, k;
uint8_t *input = new uint8_t[stride * h];
uint8_t *output = new uint8_t[out_stride * h];
uint8_t *output2 = new uint8_t[out_stride * h];
uint8_t *input = new uint8_t[stride * (h + 16)];
uint8_t *output = new uint8_t[out_stride * (h + 16)];
uint8_t *output2 = new uint8_t[out_stride * (h + 16)];
int32_t *tmpbuf = (int32_t *)aom_malloc(RESTORATION_TMPBUF_SIZE);
memset(tmpbuf, 0, RESTORATION_TMPBUF_SIZE);
......
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