Merge "Skip resetting the stack protector on eng builds"

This commit is contained in:
Chris Wailes
2023-01-31 19:58:41 +00:00
committed by Gerrit Code Review
2 changed files with 7 additions and 1 deletions

View File

@@ -40,6 +40,12 @@ cc_library_shared {
cppflags: ["-Wno-conversion-null"],
product_variables: {
eng: {
cflags: ["-DNO_RESET_STACK_PROTECTOR"],
},
},
cpp_std: "gnu++20",
srcs: [

View File

@@ -2296,7 +2296,7 @@ pid_t zygote::ForkCommon(JNIEnv* env, bool is_system_server,
setpriority(PRIO_PROCESS, 0, PROCESS_PRIORITY_MIN);
}
#if defined(__BIONIC__)
#if defined(__BIONIC__) && !defined(NO_RESET_STACK_PROTECTOR)
// Reset the stack guard for the new process.
android_reset_stack_guards();
#endif