Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
src/interpreter.rs: Fix arithmetic left/right shift implementation (m…
…ask offset) We mask the mask offset for arithmetic shifts operaitons. The current version of the BPF Instruction Set Specification specifies that "Shift operations use a mask of 0x3F (63) for 64-bit operations and 0x1F (31) for 32-bit operations" [0]. [0]: https://www.ietf.org/archive/id/draft-thaler-bpf-isa-02.html#section-3.1-2.2.16.1.1 Signed-off-by: ret2happy <[email protected]>
- Loading branch information