summaryrefslogtreecommitdiff
path: root/utils/url.h
diff options
context:
space:
mode:
authorMichael Drake <michael.drake@codethink.co.uk>2021-01-25 13:39:28 +0000
committerMichael Drake <michael.drake@codethink.co.uk>2021-01-25 13:39:28 +0000
commitda2aa05b730560024760a25dabc2078f578efd10 (patch)
tree369219c9dcc77a31783eb7bee66f5b1988c5b138 /utils/url.h
parent98496cdae16a9196bff930fff52e198a9856e2cb (diff)
downloadnetsurf-da2aa05b730560024760a25dabc2078f578efd10.tar.gz
netsurf-da2aa05b730560024760a25dabc2078f578efd10.tar.bz2
Prevent overflow of disc cache hysteresis.
The default disc cache size is 1GB (1024 * 1024 * 1024). On systems with 32bit size_t, the hysteresis calculation, which multiplied 1GB by 20 would overflow, causing a zero hysteresis. (1024 * 1024 * 1024) * 20 % (2^32) = 0 Thanks to Jonas Amoson for reporting.
Diffstat (limited to 'utils/url.h')
0 files changed, 0 insertions, 0 deletions