Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(928)

Unified Diff: sandbox/linux/seccomp-bpf/syscall.cc

Issue 357323003: Linux sandbox: add space for 8 parameters to the Syscall() class (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sandbox/linux/seccomp-bpf/syscall.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sandbox/linux/seccomp-bpf/syscall.cc
diff --git a/sandbox/linux/seccomp-bpf/syscall.cc b/sandbox/linux/seccomp-bpf/syscall.cc
index 64c0b8eb9b41b708482571febc4d417b3e1110c4..b7fce95ea4c38fa7b16abff03551df7777cb4a16 100644
--- a/sandbox/linux/seccomp-bpf/syscall.cc
+++ b/sandbox/linux/seccomp-bpf/syscall.cc
@@ -181,7 +181,9 @@ intptr_t Syscall::Call(int nr,
intptr_t p2,
intptr_t p3,
intptr_t p4,
- intptr_t p5) {
+ intptr_t p5,
+ intptr_t p6,
+ intptr_t p7) {
// We rely on "intptr_t" to be the exact size as a "void *". This is
// typically true, but just in case, we add a check. The language
// specification allows platforms some leeway in cases, where
@@ -192,6 +194,8 @@ intptr_t Syscall::Call(int nr,
COMPILE_ASSERT(sizeof(void*) == sizeof(intptr_t),
pointer_types_and_intptr_must_be_exactly_the_same_size);
+ // TODO(nedeljko): Enable use of more than six parameters on architectures
mdempsky 2014/07/01 21:53:17 Would it make sense to add DCHECK()s to make sure
nedeljko 2014/07/02 10:46:19 Done.
+ // where that makes sense.
const intptr_t args[6] = {p0, p1, p2, p3, p4, p5};
// Invoke our file-scope assembly code. The constraints have been picked
« no previous file with comments | « sandbox/linux/seccomp-bpf/syscall.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698