shithub: opus

Download patch

ref: f37dcf55709bfdff327ab475dbaa2579a2fac6dc
parent: 6a45b767e29e0b12a94c85f0f851dd18f9ac9aef
author: Jean-Marc Valin <jeanmarcv@google.com>
date: Thu Apr 24 16:43:19 EDT 2025

Fix msan uninitialized psEncCtrl->LTP_scale_Q14

The value was never actually used (valgrind didn't complain) but msan
was complaining because it was passed as an argument.

--- a/silk/fixed/find_pred_coefs_FIX.c
+++ b/silk/fixed/find_pred_coefs_FIX.c
@@ -118,6 +118,7 @@
         silk_memset( psEncCtrl->LTPCoef_Q14, 0, psEnc->sCmn.nb_subfr * LTP_ORDER * sizeof( opus_int16 ) );
         psEncCtrl->LTPredCodGain_Q7 = 0;
         psEnc->sCmn.sum_log_gain_Q7 = 0;
+        psEncCtrl->LTP_scale_Q14 = 0;
     }
 
     /* Limit on total predictive coding gain */
--