-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix integer overflow in BPF conditional jumps
If the list of syscalls is too long (>256) then the library sends incorrect BPF code and this results in crashes, because some syscalls are denied. This commit fixes the crash by splitting the list of syscalls into groups of size 256 in Policy.Assemble. Also I found another similar overflow in SyscallGroup.Assemble and fixed it as well.
- Loading branch information
Showing
1 changed file
with
38 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters