Check for underflow as well as overflow when scaling negative numbers.
authordtucker <dtucker@openbsd.org>
Fri, 11 Mar 2022 07:29:53 +0000 (07:29 +0000)
committerdtucker <dtucker@openbsd.org>
Fri, 11 Mar 2022 07:29:53 +0000 (07:29 +0000)
commit39af7dcca31cab3059a865d66e9ca17a9a2563f7
tree0b5bac109d622bdec12b549e5cfbe8085c327513
parent870c96d2eb148b968cca6b714897a85325d51f70
Check for underflow as well as overflow when scaling negative numbers.
ok millert@
lib/libutil/fmt_scaled.c
regress/lib/libutil/fmt_scaled/fmt_test.c