shithub: openh264

Download patch

ref: d03454276b57610109959396573361d63872555d
parent: 392f0bcc35236df89f37a19ee9add5db29d126e8
author: xiaotiansf <xiaotianshimail@gmail.com>
date: Tue Nov 5 04:02:25 EST 2019

fix fuzz issues 18744, 18746 and 18747 by clearing info of buffered video frames when decreasing DPB buffers.

--- a/codec/decoder/core/src/decoder.cpp
+++ b/codec/decoder/core/src/decoder.cpp
@@ -192,6 +192,8 @@
     return ERR_INFO_OUT_OF_MEMORY;
   }
 
+  ResetReorderingPictureBuffers (pCtx->pPictReoderingStatus, pCtx->pPictInfoList, false);
+
   int32_t iPrevPicIdx = -1;
   for (iPrevPicIdx = 0; iPrevPicIdx < kiOldSize; ++iPrevPicIdx) {
     if (pCtx->pLastDecPicInfo->pPreviousDecodedPictureInDpb == pPicOldBuf->ppPic[iPrevPicIdx]) {