qmonnet / rbpf

Rust virtual machine and JIT compiler for eBPF programs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Fix behaviour for division/modulus by 0

qmonnet opened this issue · comments

Instead of panicking, we should return 0 or dividend as a result of division or modulus by 0.

See kernel docs, and also iovisor/ubpf#116.

This should also address #53 and #54.