Merge pull request #957 from huili2/fix_bug_invalid_reading
access violation for array to fix issue #949
This commit is contained in:
commit
0bb23924f0
@ -32,9 +32,9 @@ TEST(GetIntraPredictorTest, TestGetI4x4LumaPredH)
|
||||
const uint32_t kiStride3 = kiStride + kiStride2;
|
||||
|
||||
uint8_t *pPred = new uint8_t[64];
|
||||
uint8_t *pRef = new uint8_t[kiStride3+1];
|
||||
uint8_t *pRef = new uint8_t[kiStride3+2];
|
||||
|
||||
for (int i=0; i<(static_cast<int32_t>(kiStride3+1)); i++)
|
||||
for (int i=0; i<(static_cast<int32_t>(kiStride3+2)); i++)
|
||||
pRef[i] = rand() % 256;
|
||||
|
||||
pRef++;
|
||||
|
Loading…
Reference in New Issue
Block a user