History

fix oss-fuzz issues 18747 and 18864. Temp disable thread decoder unit_test.

xiaotiansf committed 6 years ago

Commit fb832871 parent 49ca1f72 files · +4 −3Browse 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+2−1
@@ -363,6 +363,7 @@ void CWelsDecoder::UninitDecoderCtx (PWelsDecoderContext& pCtx) { · 362 unmodified lines
363363
364364 pCtx = NULL;
365365 }
366+ if (m_iCtxCount <= 1) m_pDecThrCtx[0].pCtx = NULL;
366367 }
367368 }
368369
@@ -408,7 +409,7 @@ int32_t CWelsDecoder::InitDecoderCtx (PWelsDecoderContext& pCtx, const SDecoding · 39 unmodified lines
408409 int32_t iCacheLineSize = 16; // on chip cache line size in byte
409410 pCtx->pMemAlign = new CMemoryAlign (iCacheLineSize);
410411 WELS_VERIFY_RETURN_PROC_IF (cmMallocMemeError, (NULL == pCtx->pMemAlign), UninitDecoderCtx (pCtx))
411−
412+ if (m_iCtxCount <= 1) m_pDecThrCtx[0].pCtx = pCtx;
412413 //fill in default value into context
413414 pCtx->pLastDecPicInfo = &m_sLastDecPicInfo;
414415 pCtx->pDecoderStatistics = &m_sDecoderStatistics;

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