Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tests/ubpf_vm.rs: Add non-regression tests for 32-bit divisions by 0
We had an issue in the interpreter, because for 32-bit div and mod we would check that the whole (64-bit long) divisor was not 0, but then we'd only use the last 32 bits of this divisor to perform the arithmetic operation. We fixed the bug, but let's add a non-regression test to catch this in the future. Link: #95 Link: #96 Signed-off-by: Quentin Monnet <quentin@isovalent.com> Signed-off-by: Richard Smith <ret2happy@126.com>
- Loading branch information