History

fix issue 3193 (fuzz 18644) by adding missing initialization of PPicture's refPic lists

xiaotiansf committed 7 years ago

Commit 642e50b1 parent 4bc0b8a1 file · +2 −0Browse files

Showing the changes to codec/decoder/core/src/decoder_core.cpp (1 of 1 file). Show all

Unified · Split

codec/decoder/core/src/decoder_core.cpp+2−0
@@ -2614,6 +2614,8 @@ int32_t DecodeCurrentAccessUnit (PWelsDecoderContext pCtx, uint8_t** ppDst, SBuf · 2613 unmodified lines
26142614 memset (pCtx->sMb.pSliceIdc[i], 0xff, (pCtx->sMb.iMbWidth * pCtx->sMb.iMbHeight * sizeof (int32_t)));
26152615 memset (pCtx->pCurDqLayer->pMbCorrectlyDecodedFlag, 0, pCtx->pSps->iMbWidth * pCtx->pSps->iMbHeight * sizeof (bool));
26162616 memset (pCtx->pCurDqLayer->pMbRefConcealedFlag, 0, pCtx->pSps->iMbWidth * pCtx->pSps->iMbHeight * sizeof (bool));
2617+ memset (pCtx->pDec->pRefPic[LIST_0], 0, sizeof (PPicture) * 17);
2618+ memset (pCtx->pDec->pRefPic[LIST_1], 0, sizeof (PPicture) * 17);
26172619 pCtx->pDec->iMbNum = pCtx->pSps->iMbWidth * pCtx->pSps->iMbHeight;
26182620 pCtx->pDec->iMbEcedNum = 0;
26192621 pCtx->pDec->iMbEcedPropNum = 0;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t