OpenBSD/src xNmnEUM — sys/conf param.c, sys/kern uipc_mbuf.c kern_sysctl.c
Prevent integer overflow in kernel and userland when checking mbuf limits. Convert kernel variables and calculations for mbuf memory into long to allow larger values on 64 bit machines. Put a range check into the kernel sysctl. For the interface itself int is still sufficient. In netstat -m cast all multiplications to unsigned long to hold the product of two unsigned int. input and OK visa@
Version | Delta | File | |
---|---|---|---|
1.270 | +12 | -8 | sys/kern/uipc_mbuf.c |
1.364 | +7 | -7 | sys/kern/kern_sysctl.c |
1.43 | +8 | -6 | usr.bin/netstat/mbuf.c |
1.245 | +3 | -2 | sys/sys/mbuf.h |
1.42 | +2 | -2 | sys/conf/param.c |
+32 | -25 | 5 files |