OpenBSD/src 5ZNvUMD — sys/net bpf.c
Lower the accepted upper bound for bd_rtout to INT_MAX in order to prevent passing negative values to timeout_add(). While here, protect against unsigned wrap around during addition of bd_rdStart and bd_rtout since it could also cause passing negative values to timeout_add(). ok bluhm@ Reported-by: syzbot+6771e3d6d9567b3983aa at syzkaller.appspotmail.com
Version | Delta | File | |
---|---|---|---|
1.174 | +7 | -5 | sys/net/bpf.c |
+7 | -5 | 1 files |