Cast uvmexp.swpages to long before multiplying by 99 to avoid integer
authorclaudio <claudio@openbsd.org>
Tue, 5 Dec 2023 15:50:45 +0000 (15:50 +0000)
committerclaudio <claudio@openbsd.org>
Tue, 5 Dec 2023 15:50:45 +0000 (15:50 +0000)
commit7f662eadf470176567ad7ef8de20ee590f831568
tree0d0461d0e34a1a27f5bd6bb9d35c909fd02fa973
parenteff8c5b632dda741f5ce79f95cb8933080902df2
Cast uvmexp.swpages to long before multiplying by 99 to avoid integer
overflows on systems with big swap partitions.
OK kettenis@ miod@
sys/uvm/uvm_swap.c