Skip to content
Commit 3e068269 authored by Naveen N. Rao's avatar Naveen N. Rao Committed by Daniel Borkmann
Browse files

bpf: fix div64 overflow tests to properly detect errors



If the result of the division is LLONG_MIN, current tests do not detect
the error since the return value is truncated to a 32-bit value and ends
up being 0.

Signed-off-by: default avatarNaveen N. Rao <naveen.n.rao@linux.vnet.ibm.com>
Signed-off-by: default avatarDaniel Borkmann <daniel@iogearbox.net>
parent 0e265747
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment