History

Fix ossz-fuzz reported bug-13001. the fix has added one error code in codec_app_def.h which handles null ptrs in ref pic lists within refCount.

xiaotiansf committed 7 years ago

Commit 19a94861 parent 71d619c5 files · +33 −11Browse files

Showing the changes to codec/decoder/core/src/decode_slice.cpp (1 of 5 files). Show all

Unified · Split

codec/decoder/core/src/decode_slice.cpp+9−3
@@ -62,9 +62,15 @@ static bool CheckRefPics (const PWelsDecoderContext& pCtx) { · 61 unmodified lines
62 ++listCount;62 ++listCount;
63 }63 }
64 for (int32_t list = LIST_0; list < listCount; ++list) {64 for (int32_t list = LIST_0; list < listCount; ++list) {
65 int32_t refCount = pCtx->sRefPic.uiRefCount[list];65 int32_t shortRefCount = pCtx->sRefPic.uiShortRefCount[list];
66 for (int32_t refIdx = 0; refIdx < refCount; ++refIdx) {66 for (int32_t refIdx = 0; refIdx < shortRefCount; ++refIdx) {
67 if (!pCtx->sRefPic.pRefList[list][refIdx]) {67 if (!pCtx->sRefPic.pShortRefList[list][refIdx]) {
68 return false;
69 }
70 }
71 int32_t longRefCount = pCtx->sRefPic.uiLongRefCount[list];
72 for (int32_t refIdx = 0; refIdx < longRefCount; ++refIdx) {
73 if (!pCtx->sRefPic.pLongRefList[list][refIdx]) {
68 return false;74 return false;
69 }75 }
70 }76 }

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