[prev in list] [next in list] [prev in thread] [next in thread] 

List:       rockbox-cvs
Subject:    fix uninitialized warning in libopus
From:       rockbox-gerrit-noreply--- via rockbox-cvs <rockbox-cvs () lists ! haxx ! se>
Date:       2022-06-22 2:07:16
Message-ID: 202206220207.25M27GGl1397995 () archos ! rockbox ! org
[Download RAW message or body]

commit e1c5a3e296963bbe957de795287bf91de56d2e42
Author: William Wilgus <wilgus.william@gmail.com>
Date:   Tue Jun 21 22:05:17 2022 -0400

    fix uninitialized warning in libopus
    
    likely this is truly a bug but I imagine much worse things
    happen before this point in that case
    
    Change-Id: If78465cf2ae1e5cf38ad7f087dd436b888bc9996

diff --git a/lib/rbcodec/codecs/libopus/silk/NLSF2A.c b/lib/rbcodec/codecs/libopus/silk/NLSF2A.c
index d5b7730638..8f472f25f7 100644
--- a/lib/rbcodec/codecs/libopus/silk/NLSF2A.c
+++ b/lib/rbcodec/codecs/libopus/silk/NLSF2A.c
@@ -80,7 +80,7 @@ void silk_NLSF2A(
     };
     const unsigned char *ordering;
     opus_int   k, i, dd;
-    opus_int32 cos_LSF_QA[ SILK_MAX_ORDER_LPC ];
+    opus_int32 cos_LSF_QA[ SILK_MAX_ORDER_LPC ] = {0};
     opus_int32 P[ SILK_MAX_ORDER_LPC / 2 + 1 ], Q[ SILK_MAX_ORDER_LPC / 2 + 1 ];
     opus_int32 Ptmp, Qtmp, f_int, f_frac, cos_val, delta;
     opus_int32 a32_QA1[ SILK_MAX_ORDER_LPC ];
-- 
rockbox-cvs mailing list
rockbox-cvs@lists.haxx.se
https://lists.haxx.se/listinfo/rockbox-cvs
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic