ref: 0bb23924f0daef2b848d60e0250e4ce45777d90e
parent: 84c1f3a4eec95f0feaf898bd5b7dd3edee00a7e3
parent: 24553c2e4aea5a3542093a1716c2022a37239ac9
author: Ethan Hugg <[email protected]>
date: Wed Jun 11 11:03:14 EDT 2014
Merge pull request #957 from huili2/fix_bug_invalid_reading access violation for array to fix issue #949
--- a/test/encoder/EncUT_GetIntraPredictor.cpp
+++ b/test/encoder/EncUT_GetIntraPredictor.cpp
@@ -32,9 +32,9 @@
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++;