the bitrig master branch has been updated by natano with 10 new commits: commit 2c3c62aa384b91274a24b4862491ac729f838a31 diff: https://github.com/bitrig/bitrig/commit/2c3c62a author: Martin Natano <[email protected]> date: Mon Mar 9 22:05:49 2015 +0100
Some obvious szmin() conversions; no functional change intended. ok pedro@ M sys/arch/amd64/amd64/mem.c M sys/arch/arm/arm/mem.c M sys/dev/isa/spkr.c M sys/kern/uipc_socket.c commit 2a10763a2d0c6aa1c1a48f38c34dd050dd3196e8 diff: https://github.com/bitrig/bitrig/commit/2a10763 author: Martin Natano <[email protected]> date: Mon Mar 9 22:05:06 2015 +0100 Prevent (too) short read in nvramread(); ok pedro@ M sys/arch/amd64/amd64/nvram.c commit 5a3e224c7aed2fa0ff47c58cca02f74245b3ba87 diff: https://github.com/bitrig/bitrig/commit/5a3e224 author: Martin Natano <[email protected]> date: Mon Mar 9 21:26:14 2015 +0100 Prevent endless loop in cuio_copydata, cuio_copyback and cuio_apply. ok pedro@ M sys/crypto/criov.c commit 86b7e331c797a6859d0c4d29d885beaa43e99099 diff: https://github.com/bitrig/bitrig/commit/86b7e33 author: Martin Natano <[email protected]> date: Mon Mar 9 21:23:18 2015 +0100 Prevent short ulptwrite(); ok pedro@ M sys/dev/usb/ulpt.c commit 2fa4c28595c8ada967f88cb3e6de5aa666837126 diff: https://github.com/bitrig/bitrig/commit/2fa4c28 author: Martin Natano <[email protected]> date: Mon Mar 9 21:19:56 2015 +0100 Prevent endless loop in uhidread() and use uiomove for size_t; ok pedro@ M sys/dev/usb/uhid.c commit cb9413dfabbf0ceda540c7f916db85d5b55cc750 diff: https://github.com/bitrig/bitrig/commit/cb9413d author: Martin Natano <[email protected]> date: Mon Mar 9 21:15:59 2015 +0100 Prevent short ios and endless loops in ugenread/write; ok pedro@ M sys/dev/usb/ugen.c commit a1bd57318c96a93ee946d34c5dbbe4e6fcc7af92 diff: https://github.com/bitrig/bitrig/commit/a1bd573 author: Martin Natano <[email protected]> date: Mon Mar 9 20:37:51 2015 +0100 Avoid early (short) return in lptwrite by avoiding an integer truncation. Also: Use uiomove(), not uiomovei() - the size variable is a size_t! ok pedro@ M sys/dev/ic/lpt.c commit 644445e933cb1f677104c8d45f0021fa8a67a459 diff: https://github.com/bitrig/bitrig/commit/644445e author: Martin Natano <[email protected]> date: Mon Mar 9 20:01:40 2015 +0100 Prevent randomread()/randomwrite() from entering an endless loop. Those functions could be tricked into entering an endless loop by performing a read of exactly 2**32 bytes. Due to an integer overflow the chunk size for the loop iteration would get stuck at 0, and thus the loop would never advance. ok pedro@ M sys/dev/rnd.c commit 64a2fe8100cb8d83cf3884350262d012218e6a7e diff: https://github.com/bitrig/bitrig/commit/64a2fe8 author: Martin Natano <[email protected]> date: Mon Mar 9 19:44:40 2015 +0100 Add szmin() and szmax() to libkern. The ulmin() function is misused in a lot of places for size_t values. Add corresponding utility functions for size_t, to aid code correctness. ok pedro@ M share/man/man9/kern.9 M sys/lib/libkern/libkern.h commit d45dd80d990e0df400b74f892c51f2902d9c2972 diff: https://github.com/bitrig/bitrig/commit/d45dd80 author: Martin Natano <[email protected]> date: Wed Mar 11 21:38:33 2015 +0100 Remove non-inline *min and *max functions from libkern. They are not used anyway. ok pedro@ M sys/conf/files D sys/lib/libkern/imax.c D sys/lib/libkern/imin.c D sys/lib/libkern/lmax.c D sys/lib/libkern/lmin.c D sys/lib/libkern/max.c D sys/lib/libkern/min.c D sys/lib/libkern/ulmax.c D sys/lib/libkern/ulmin.c
