HomeFreeBSD

Fix overflow errors in sbttous and sbttoms

Description

Fix overflow errors in sbttous and sbttoms

Both of these functions would overflow for very large inputs. Add tests
for them. Also, add tests for the inverse functions, *stosbt, whose
overflow errors were fixed by 4c30b9ecd47.

PR: 263073
Sponsored by: Axcient
Reviewed by: imp
Differential Revision: https://reviews.freebsd.org/D34809

(cherry picked from commit 10f44229dcd93672583ad6b6e1193a9bc9e4f7c7)

Details

Provenance
asomersAuthored on Apr 6 2022, 8:03 PM
Reviewer
imp
Differential Revision
D34809: Fix overflow errors in sbttous and sbttoms
Parents
rGdee01da58a27: Correctly measure system load averages > 1024
Branches
Unknown
Tags
Unknown