]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Fix bitstring allocation on 32-bit platforms
authorasomers <asomers@FreeBSD.org>
Fri, 24 Jun 2016 21:44:46 +0000 (21:44 +0000)
committerasomers <asomers@FreeBSD.org>
Fri, 24 Jun 2016 21:44:46 +0000 (21:44 +0000)
commitaa7e564bf30e996aea3c47dd96ba6f85bdc804db
treeef8b45ececf575950d2fe7fdd4a41b704015eb78
parentc5064f0323016fc0ff3a8d674ba24995ac35c1e6
Fix bitstring allocation on 32-bit platforms

sys/sys/bitstring.h
Fix a rounding calculation that could undersize a bitstring on
32-bit platforms.

tests/sys/sys/bitstring_test.h
Add a test for bitstr_size

PR: 210260
Reported by: Mark Millard
Reviewed by: gibbs
Approved by: re (marius)
Sponsored by: Spectra Logic Corp
Differential Revision: https://reviews.freebsd.org/D6848
sys/sys/bitstring.h
tests/sys/sys/bitstring_test.c