History

Merge pull request #320 from huili2/mb_residual_size_check

remain size to prevent MB residual reading overflow

Licai Guo committed 12 years ago

Commit a921bc62 parents 205e48c 7bace842 files · +2 −1Browse files

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

Unified · Split

codec/decoder/plus/src/welsDecoderExt.cpp+1−1
@@ -322,7 +322,7 @@ DECODING_STATE CWelsDecoder::DecodeFrame2 (const unsigned char* kpSrc, · 321 unmodified lines
322322 const int kiSrcLen,
323323 void** ppDst,
324324 SBufferInfo* pDstInfo) {
325− if (kiSrcLen > MAX_ACCESS_UNIT_CAPACITY) {
325+ if (kiSrcLen > MAX_ACCESS_UNIT_CAPACITY - MAX_MACROBLOCK_CAPACITY) {//prevent from residual reading overflow
326326 m_pDecContext->iErrorCode |= dsOutOfMemory;
327327 IWelsTrace::WelsVTrace (m_pTrace, IWelsTrace::WELS_LOG_INFO,
328328 "max AU size exceeded. Allowed size = %d, current size = %d",

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