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 (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
2614 memset (pCtx->sMb.pSliceIdc[i], 0xff, (pCtx->sMb.iMbWidth * pCtx->sMb.iMbHeight * sizeof (int32_t)));2614 memset (pCtx->sMb.pSliceIdc[i], 0xff, (pCtx->sMb.iMbWidth * pCtx->sMb.iMbHeight * sizeof (int32_t)));
2615 memset (pCtx->pCurDqLayer->pMbCorrectlyDecodedFlag, 0, pCtx->pSps->iMbWidth * pCtx->pSps->iMbHeight * sizeof (bool));2615 memset (pCtx->pCurDqLayer->pMbCorrectlyDecodedFlag, 0, pCtx->pSps->iMbWidth * pCtx->pSps->iMbHeight * sizeof (bool));
2616 memset (pCtx->pCurDqLayer->pMbRefConcealedFlag, 0, pCtx->pSps->iMbWidth * pCtx->pSps->iMbHeight * sizeof (bool));2616 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);
2617 pCtx->pDec->iMbNum = pCtx->pSps->iMbWidth * pCtx->pSps->iMbHeight;2619 pCtx->pDec->iMbNum = pCtx->pSps->iMbWidth * pCtx->pSps->iMbHeight;
2618 pCtx->pDec->iMbEcedNum = 0;2620 pCtx->pDec->iMbEcedNum = 0;
2619 pCtx->pDec->iMbEcedPropNum = 0;2621 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