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

Commit 4ad8cc55 authored by Vishwath Mohan's avatar Vishwath Mohan Committed by Android (Google) Code Review
Browse files

Merge "Enable CFI for static media codec libraries." into oc-dev-plus-aosp

parents d371758d 4ca485f7
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -44,5 +44,7 @@ LOCAL_MODULE:= libstagefright_nuplayer

LOCAL_MODULE_TAGS := eng

include $(BUILD_STATIC_LIBRARY)
LOCAL_SANITIZE := cfi
LOCAL_SANITIZE_DIAG := cfi

include $(BUILD_STATIC_LIBRARY)
+1 −2
Original line number Diff line number Diff line
@@ -131,8 +131,7 @@ else # visualon
  LOCAL_CFLAGS := -DOSCL_IMPORT_REF=

  LOCAL_CFLAGS += -Werror
  LOCAL_SANITIZE := signed-integer-overflow unsigned-integer-overflow cfi
  LOCAL_SANITIZE_DIAG := cfi
  LOCAL_SANITIZE := signed-integer-overflow unsigned-integer-overflow

  LOCAL_STATIC_LIBRARIES := \
          libstagefright_aacenc
+2 −1
Original line number Diff line number Diff line
@@ -47,7 +47,8 @@ LOCAL_C_INCLUDES := \
LOCAL_CFLAGS := -DOSCL_EXPORT_REF= -DOSCL_IMPORT_REF=

LOCAL_CFLAGS += -Werror
LOCAL_SANITIZE := signed-integer-overflow
LOCAL_SANITIZE := signed-integer-overflow cfi
LOCAL_SANITIZE_DIAG := cfi

include $(BUILD_STATIC_LIBRARY)

+4 −2
Original line number Diff line number Diff line
@@ -34,7 +34,8 @@ LOCAL_C_INCLUDES := \
    $(TOP)/frameworks/native/include/media/openmax

LOCAL_CFLAGS += -Werror
LOCAL_SANITIZE := signed-integer-overflow
LOCAL_SANITIZE := signed-integer-overflow cfi
LOCAL_SANITIZE_DIAG := cfi

include $(BUILD_STATIC_LIBRARY)

@@ -88,7 +89,8 @@ LOCAL_C_INCLUDES := \
        $(LOCAL_PATH)/include

LOCAL_CFLAGS := -DOSCL_EXPORT_REF= -DOSCL_IMPORT_REF= -DBX_RC
LOCAL_SANITIZE := signed-integer-overflow
LOCAL_SANITIZE := signed-integer-overflow cfi
LOCAL_SANITIZE_DIAG := cfi

LOCAL_STATIC_LIBRARIES := \
        libstagefright_m4vh263enc
+5 −2
Original line number Diff line number Diff line
@@ -54,7 +54,8 @@ LOCAL_CFLAGS := \
        -D"OSCL_UNUSED_ARG(x)=(void)(x)"

LOCAL_CFLAGS += -Werror
LOCAL_SANITIZE := signed-integer-overflow
LOCAL_SANITIZE := signed-integer-overflow cfi
LOCAL_SANITIZE_DIAG := cfi

LOCAL_MODULE := libstagefright_mp3dec

@@ -102,7 +103,9 @@ LOCAL_C_INCLUDES := \
        $(LOCAL_PATH)/test/include \
        $(call include-path-for, audio-utils)

LOCAL_SANITIZE := signed-integer-overflow
LOCAL_SANITIZE := signed-integer-overflow cfi
LOCAL_SANITIZE_DIAG := cfi

LOCAL_STATIC_LIBRARIES := \
        libstagefright_mp3dec libsndfile

Loading