Commit e86db0bd authored by LoveSy's avatar LoveSy Committed by John Wu

Reset stack guard after fork from Zygote

parent a29fc117
...@@ -209,7 +209,7 @@ def gen_jni_def(clz, methods): ...@@ -209,7 +209,7 @@ def gen_jni_def(clz, methods):
decl = '' decl = ''
for m in methods: for m in methods:
decl += ind(0) + f'{m.ret.type.cpp} {m.name}(JNIEnv *env, jclass clazz, {m.cpp()}) {{' decl += ind(0) + f'[[clang::no_stack_protector]] {m.ret.type.cpp} {m.name}(JNIEnv *env, jclass clazz, {m.cpp()}) {{'
decl += m.body() decl += m.body()
if m.ret.value: if m.ret.value:
decl += ind(1) + f'return {m.ret.value};' decl += ind(1) + f'return {m.ret.value};'
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment