mirror of
https://github.com/google/sandboxed-api.git
synced 2024-03-22 13:11:30 +08:00
Avoid tail-call optimization in "violate" testcase
PiperOrigin-RevId: 364523883 Change-Id: I5e43534d7db37b4c16f18fc3326714664ab0ae00
This commit is contained in:
parent
df840ae38f
commit
1be4d04f4e
|
@ -77,4 +77,9 @@ extern "C" const void* get_raw_c_string() { return "Ten chars."; }
|
|||
|
||||
extern "C" void nop() {}
|
||||
|
||||
extern "C" void violate() { ptrace((__ptrace_request)990, 991, 992, 993); }
|
||||
extern "C" void violate() {
|
||||
ptrace((__ptrace_request)990, 991, 992, 993);
|
||||
// Once more to avoid tail-call optimization, so that violate is in the
|
||||
// stacktrace.
|
||||
ptrace((__ptrace_request)990, 991, 992, 993);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user