freebsd-dev/cddl
Mark Johnston ce4da6fccc Fix an off-by-two in the llquantize() action parameter validation.
The aggregation created by llquantize() partitions values into buckets; the
lower bound of the bucket containing the largest values is b^{m+1}, where
b and m are the second and fourth parameters to the action, respectively.
Bucket bounds are stored in a 64-bit integer, and so the llquantize()
validation checks need to verify that b^{m+1} fits in 64 bits. However, it
was only verifying that b^{m-1} fits in 64 bits, so certain parameter
combinations could trigger assertion failures in libdtrace.

PR:		219451
MFC after:	1 week
2017-08-21 21:56:02 +00:00
..
compat/opensolaris libproc: Add support for some proc_attach() flags. 2016-12-06 04:22:38 +00:00
contrib/opensolaris Fix an off-by-two in the llquantize() action parameter validation. 2017-08-21 21:56:02 +00:00
lib Convert traditional ${MK_TESTS} conditional idiom for including test 2017-08-02 08:35:51 +00:00
sbin Convert traditional ${MK_TESTS} conditional idiom for including test 2017-08-02 08:35:51 +00:00
tests Merge ^/user/ngie/release-pkg-fix-tests to unbreak how test files are installed 2016-05-04 23:20:53 +00:00
usr.bin Convert traditional ${MK_TESTS} conditional idiom for including test 2017-08-02 08:35:51 +00:00
usr.sbin Convert traditional ${MK_TESTS} conditional idiom for including test 2017-08-02 08:35:51 +00:00
Makefile Convert traditional ${MK_TESTS} conditional idiom for including test 2017-08-02 08:35:51 +00:00
Makefile.inc Make DTrace stuff compile with C99 standard. 2014-08-22 20:04:51 +00:00