Merge "Skip resetting the stack protector on eng builds" am: 838c317e2d am: bd0b423890
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2407872 Change-Id: I2e05b112f02c36bc2d57b5a247f07f907242846e Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -40,6 +40,12 @@ cc_library_shared {
|
|||||||
|
|
||||||
cppflags: ["-Wno-conversion-null"],
|
cppflags: ["-Wno-conversion-null"],
|
||||||
|
|
||||||
|
product_variables: {
|
||||||
|
eng: {
|
||||||
|
cflags: ["-DNO_RESET_STACK_PROTECTOR"],
|
||||||
|
},
|
||||||
|
},
|
||||||
|
|
||||||
cpp_std: "gnu++20",
|
cpp_std: "gnu++20",
|
||||||
|
|
||||||
srcs: [
|
srcs: [
|
||||||
|
|||||||
@@ -2302,7 +2302,7 @@ pid_t zygote::ForkCommon(JNIEnv* env, bool is_system_server,
|
|||||||
setpriority(PRIO_PROCESS, 0, PROCESS_PRIORITY_MIN);
|
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.
|
// Reset the stack guard for the new process.
|
||||||
android_reset_stack_guards();
|
android_reset_stack_guards();
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user