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

Commit e6acb385 authored by Dan Austin's avatar Dan Austin
Browse files

Enable fsanitize signed-integer-overflow in AAC encoder

Bug: 23752600
Change-Id: I9f607d60b8c7bc93cb34af5f70305caf56df57ec
parent 90e1e02a
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -83,6 +83,8 @@ LOCAL_C_INCLUDES += $(LOCAL_PATH)/src/asm/ARMV7
endif

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

include $(BUILD_STATIC_LIBRARY)

@@ -109,6 +111,8 @@ ifeq ($(AAC_LIBRARY), fraunhofer)
  LOCAL_CFLAGS :=

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

  LOCAL_STATIC_LIBRARIES := libFraunhoferAAC

@@ -133,6 +137,8 @@ else # visualon
  LOCAL_CFLAGS := -DOSCL_IMPORT_REF=

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

  LOCAL_STATIC_LIBRARIES := \
          libstagefright_aacenc