Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6daf8732 authored by Dan Austin's avatar Dan Austin Committed by android-build-merger
Browse files

Merge "Enabling fsanitize unsigned-integer-overflow in AMR-NB codecs"

am: 51305b88

* commit '51305b88':
  Enabling fsanitize unsigned-integer-overflow in AMR-NB codecs
parents 6f90d456 51305b88
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -69,7 +69,7 @@ LOCAL_CFLAGS := \

LOCAL_CFLAGS += -Werror
LOCAL_CLANG := true
LOCAL_SANITIZE := signed-integer-overflow
LOCAL_SANITIZE := signed-integer-overflow unsigned-integer-overflow

LOCAL_MODULE := libstagefright_amrnb_common

+3 −1
Original line number Diff line number Diff line
@@ -237,7 +237,9 @@ static Word16 Chebps (Word16 x,

------------------------------------------------------------------------------
*/

#ifdef __clang__
__attribute__((no_sanitize("integer")))
#endif
static Word16 Chebps(Word16 x,
                     Word16 f[], /* (n) */
                     Word16 n,
+3 −0
Original line number Diff line number Diff line
@@ -187,6 +187,9 @@ terms listed above has been obtained from the copyright holder.
; FUNCTION CODE
----------------------------------------------------------------------------*/

#ifdef __clang__
__attribute__((no_sanitize("integer")))
#endif
Word16 sub(Word16 var1, Word16 var2, Flag *pOverflow)
{

+3 −1
Original line number Diff line number Diff line
@@ -245,7 +245,9 @@ void Syn_filt (

------------------------------------------------------------------------------
*/

#ifdef __clang__
__attribute__((no_sanitize("integer")))
#endif
void Syn_filt(
    Word16 a[],     /* (i)   : a[M+1] prediction coefficients   (M=10)  */
    Word16 x[],     /* (i)   : input signal                             */