]> git.ipfire.org Git - thirdparty/haproxy.git/commit
CLEANUP: init: address a coverity warning about possible multiply overflow
authorWilly Tarreau <w@1wt.eu>
Tue, 24 May 2022 05:43:57 +0000 (07:43 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 24 May 2022 05:46:00 +0000 (07:46 +0200)
commit2cb3be76bf1435326984907d1fa04b6238dd0a03
treeef60171c60691f1bda0bbd4d6f54df46ff00445b
parent019a182ebf1dce312c644993b1d9d0fec2c38c37
CLEANUP: init: address a coverity warning about possible multiply overflow

In issue #1585 Coverity suspects a risk of multiply overflow when
calculating the SSL cache size, though in practice the cache is
limited to 2^32 anyway thus it cannot really happen. Nevertheless,
casting the operation should be sufficient to avoid marking it as a
false positive.
src/haproxy.c