commit | b9b8b6b6beb84b6b942d24eda56bfbe3812cc294 | [log] [tgz] |
---|---|---|
author | Frédéric Lécaille <flecaille@haproxy.com> | Thu Oct 25 20:17:45 2018 +0200 |
committer | Willy Tarreau <w@1wt.eu> | Fri Oct 26 04:54:40 2018 +0200 |
tree | ae4cfd50f993e6babcb545d407e64d2d8773168c | |
parent | 5f8bea64884f306bf8da69fd8ae9760de54fcf7b [diff] |
BUG/MINOR: cache: Crashes with "total-max-size" > 2047(MB). With this patch we support cache size larger than 2047 (MB) and prevent haproxy from crashing when "total-max-size" is parsed as negative values by atoi(). The limit at parsing time is 4095 MB (UINT_MAX >> 20). May be backported to 1.8.