init: Enable LOCAL_DETECT_INTEGER_OVERFLOWS

Call abort() if an integer overflow or underflow occurs.
See https://android-review.googlesource.com/154831

Change-Id: Icb6bdef55a5899144351b56d683f34f5da32a88d
This commit is contained in:
Nick Kralevich 2015-06-15 20:37:09 -07:00
parent 3a7d4b4e2a
commit 18ae44bf3d
1 changed files with 4 additions and 0 deletions

View File

@ -30,6 +30,8 @@ LOCAL_SRC_FILES:= \
LOCAL_STATIC_LIBRARIES := libbase
LOCAL_MODULE := libinit
LOCAL_DETECT_INTEGER_OVERFLOWS := true
LOCAL_CLANG := true
include $(BUILD_STATIC_LIBRARY)
@ -77,6 +79,7 @@ LOCAL_POST_INSTALL_CMD := $(hide) mkdir -p $(TARGET_ROOT_OUT)/sbin; \
ln -sf ../init $(TARGET_ROOT_OUT)/sbin/ueventd; \
ln -sf ../init $(TARGET_ROOT_OUT)/sbin/watchdogd
LOCAL_DETECT_INTEGER_OVERFLOWS := true
LOCAL_CLANG := true
include $(BUILD_EXECUTABLE)
@ -94,5 +97,6 @@ LOCAL_SHARED_LIBRARIES += \
libbase \
LOCAL_STATIC_LIBRARIES := libinit
LOCAL_DETECT_INTEGER_OVERFLOWS := true
LOCAL_CLANG := true
include $(BUILD_NATIVE_TEST)