ref: d7b344f18de68e52bd5fa4a02a762bf192831c79
parent: 6ba10ce6f318218b37e42fe66618c30d2f517b65
parent: c45e08a984cf79d1d4c72b604b29ab2df84bc0ae
author: HaiboZhu <[email protected]>
date: Tue Aug 11 13:26:46 EDT 2015
Merge pull request #2069 from huili2/bugfix_rplr_num_overflow prevent error RPLR number overflow case
--- a/codec/decoder/core/src/manage_dec_ref.cpp
+++ b/codec/decoder/core/src/manage_dec_ref.cpp
@@ -197,7 +197,8 @@
}
if (pRefPicListReorderSyn->bRefPicListReorderingFlag[LIST_0]) {
- while (pRefPicListReorderSyn->sReorderingSyn[LIST_0][iReorderingIndex].uiReorderingOfPicNumsIdc != 3) {
+ while ((iReorderingIndex < iMaxRefIdx)
+ && (pRefPicListReorderSyn->sReorderingSyn[LIST_0][iReorderingIndex].uiReorderingOfPicNumsIdc != 3)) {
uint16_t uiReorderingOfPicNumsIdc =
pRefPicListReorderSyn->sReorderingSyn[LIST_0][iReorderingIndex].uiReorderingOfPicNumsIdc;
if (uiReorderingOfPicNumsIdc < 2) {