Merge "init: only use signed-integer-overflow sanitizer"

This commit is contained in:
Treehugger Robot 2017-07-27 00:20:11 +00:00 committed by Gerrit Code Review
commit a19f481c8c
2 changed files with 2 additions and 2 deletions

View File

@ -18,7 +18,7 @@ cc_defaults {
name: "init_defaults",
cpp_std: "experimental",
sanitize: {
misc_undefined: ["integer"],
misc_undefined: ["signed-integer-overflow"],
},
cppflags: [
"-DLOG_UEVENTS=0",

View File

@ -99,5 +99,5 @@ 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_SANITIZE := integer
LOCAL_SANITIZE := signed-integer-overflow
include $(BUILD_EXECUTABLE)