We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0bc4e03 commit 9ee3b0cCopy full SHA for 9ee3b0c
tee/kernel/src/user/syscall/traits.rs
@@ -133,6 +133,11 @@ impl SyscallHandlers {
133
self.future_size = return_size;
134
}
135
136
+ // Make sure that the future is not too big. There's no technical
137
+ // reason why large futures can't work, but we should avoid them if
138
+ // possible.
139
+ assert!(return_size < 2048, "future is very big");
140
+
141
/// Returns the alignment of the return type of `T::execute`.
142
const fn return_align<'a, T>(
143
_: fn(thread: &'a Arc<Thread>, syscall_args: SyscallArgs) -> T,
0 commit comments