commit | 00c005c72637b68758d891599017024ded13879d | [log] [tgz] |
---|---|---|
author | Thierry FOURNIER <tfournier@arpalert.org> | Wed Jul 08 01:10:21 2015 +0200 |
committer | Willy Tarreau <w@1wt.eu> | Wed Jul 22 00:48:24 2015 +0200 |
tree | aa793f4476f3f2f6adc51ed69850eb0e74ed9032 | |
parent | bf65cd4d77bc2b4699c690c7b0fcaa6676944507 [diff] |
MEDIUM: sample: switch to saturated arithmetic This patch check calculus for overflow and returns capped values. This permits to protect against integer overflow in certain operations involving ratios, percentages, limits or anything. That can sometimes be critically important with some operations (eg: content-length < X).