History

Fix oss-fuzz reported bug 13941 Heap-use-after-free in WelsDec::MapColToList0.

xiaotiansf committed 7 years ago

Commit fbb525f1 parent 72780eb2 files · +9 −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+6−0
@@ -592,6 +592,12 @@ DECODING_STATE CWelsDecoder::DecodeFrame2 (const unsigned char* kpSrc, · 591 unmodified lines
592592 }
593593 return dsErrorFree;
594594 }
595+ if ((m_pDecContext->iErrorCode == (dsBitstreamError | dsDataErrorConcealed)) && m_pDecContext->eSliceType == B_SLICE) {
596+ if (ResetDecoder()) {
597+ return DECODING_STATE (dsBitstreamError | dsDataErrorConcealed);
598+ }
599+ return dsErrorFree;
600+ }
595601 //for AVC bitstream (excluding AVC with temporal scalability, including TP), as long as error occur, SHOULD notify upper layer key frame loss.
596602 if ((IS_PARAM_SETS_NALS (eNalType) || NAL_UNIT_CODED_SLICE_IDR == eNalType) ||
597603 (VIDEO_BITSTREAM_AVC == m_pDecContext->eVideoType)) {

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