shithub: openh264

Download patch

ref: e9d21a4598484a1001c94f61aec135d7e6f56152
parent: b5cf2ca4c39b83d14095f2b48e4b1f9beabb5fa3
parent: 55932a91039d89641de0bf7daadd878e80178caf
author: YangChun Qian <yanqian@cisco.com>
date: Tue Feb 18 10:21:05 EST 2020

Merge pull request #3235 from huili2/ubsan_ut_failure_fix

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];