History

Merge pull request #2657 from huili2/parseonly_length_overflow_crashfix_final

fix parseonly length overflow

ruil2 committed 9 years ago

Commit 74c02a52 parents b84f056 17139518 files · +370 −24Browse files

Showing the changes to codec/decoder/plus/src/welsDecoderExt.cpp (1 of 8 files). Show all

Unified · Split

codec/decoder/plus/src/welsDecoderExt.cpp+1−1
@@ -726,7 +726,7 @@ DECODING_STATE CWelsDecoder::DecodeParser (const unsigned char* kpSrc, · 725 unmodified lines
726726 m_pDecContext->pParam->eEcActiveIdc = ERROR_CON_DISABLE; //add protection to disable EC here.
727727 if (!m_pDecContext->bFramePending) { //frame complete
728728 m_pDecContext->pParserBsInfo->iNalNum = 0;
729− memset (m_pDecContext->pParserBsInfo->iNalLenInByte, 0, MAX_NAL_UNITS_IN_LAYER);
729+ memset (m_pDecContext->pParserBsInfo->pNalLenInByte, 0, MAX_NAL_UNITS_IN_LAYER);
730730 }
731731 pDstInfo->iNalNum = 0;
732732 pDstInfo->iSpsWidthInPixel = pDstInfo->iSpsHeightInPixel = 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