shithub: openh264

Download patch

ref: 55932a91039d89641de0bf7daadd878e80178caf
parent: b5cf2ca4c39b83d14095f2b48e4b1f9beabb5fa3
author: Wayne Liu <huili2@cisco.com>
date: Tue Feb 18 09:43:24 EST 2020

fix ubsan failure in UT

--- a/test/decoder/DecUT_DeblockCommon.cpp
+++ b/test/decoder/DecUT_DeblockCommon.cpp
@@ -804,7 +804,7 @@
   // Dummy picture list pointers to 1..MAX_DPB_COUNT
   // the pointer values don't need to be valid, just different
   for (i = 0; i < MAX_DPB_COUNT; i++)
-    iFilterPics[0][i] = iFilterPics[1][i] = (PPicture) (iFilterPics + (i << 3));
+    iFilterPics[0][i] = iFilterPics[1][i] = (PPicture) (iFilterPics + i);
 
   sFilter.pRefPics[0] = iFilterPics[0];
   sFilter.pRefPics[1] = iFilterPics[1];