shithub: openh264

Download patch

ref: dedc305a00c428cfee5ab0256f149a8284647ddf
parent: 2ddeb7031c2df4a2c32c1a4c848bbf3b8e232d9d
parent: 7a1edbafd3c96d21696bb655bd657da6efbca450
author: sijchen <sijchen@cisco.com>
date: Fri Apr 5 06:33:35 EDT 2019

Merge pull request #3119 from xiaotiansf/LastFixes

fix oss-fuzzer reported bug 14060 by resetting decoder in time based …

--- a/codec/decoder/plus/src/welsDecoderExt.cpp
+++ b/codec/decoder/plus/src/welsDecoderExt.cpp
@@ -592,9 +592,10 @@
       }
       return dsErrorFree;
     }
-    if ((m_pDecContext->iErrorCode == (dsBitstreamError | dsDataErrorConcealed)) && m_pDecContext->eSliceType == B_SLICE) {
+    if ((m_pDecContext->iErrorCode & (dsBitstreamError | dsDataErrorConcealed)) && m_pDecContext->eSliceType == B_SLICE) {
       if (ResetDecoder()) {
-        return DECODING_STATE (dsBitstreamError | dsDataErrorConcealed);
+        pDstInfo->iBufferStatus = 0;
+        return (DECODING_STATE)m_pDecContext->iErrorCode;
       }
       return dsErrorFree;
     }