Commit b450c9d1 authored by Sandesh Venkatesh's avatar Sandesh Venkatesh
Browse files

Merge branch 'fix-basop-util-divide3232-scale-newton' into 'main'

Add FIX_USAN_BASOP_UTIL_DIVIDE3232 to address USAN in BASOP_Util_Divide3232_Scale_newton

See merge request !1732
parents 8ff2a178 f874b377
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -1409,7 +1409,11 @@ Word32 BASOP_Util_Divide3232_Scale_newton( Word32 x, Word32 y, Word16 *s )
        *s = 0;
        return ( (Word32) 0 );
    }
#ifdef FIX_USAN_BASOP_UTIL_DIVIDE3232
    IF( EQ_32( y, (Word32) 0x80000000 ) )
#else
    IF( EQ_32( y, 0x80000000 ) )
#endif
    {
        /* Division by -1.0: same as negation of numerator */
        /* Return normalized negated numerator */
+1 −0
Original line number Diff line number Diff line
@@ -106,6 +106,7 @@
#define REMOVE_EVS_DUPLICATES                   /* remove core-coder duplicated functions, ACELP low-band decoder */

#define FIX_1713_EXP                            /* VA: proposed correction to exp in ic-BWE*/
#define FIX_USAN_BASOP_UTIL_DIVIDE3232          /* Eri: Fix USAN error in BASOP_Util_Divide3232_Scale_newton by adding explicit type cast for -1 in hex */

#define FIX_1733_CLDFB_BUG