]> git.ipfire.org Git - thirdparty/squid.git/commit
Y2038: improve printing of time settings (#1493)
authorFrancesco Chemolli <5175948+kinkie@users.noreply.github.com>
Tue, 3 Oct 2023 18:11:51 +0000 (18:11 +0000)
committerAmos Jeffries <yadij@users.noreply.github.com>
Thu, 5 Oct 2023 00:30:13 +0000 (13:30 +1300)
commitcbd7fb6a0fb9877e6aaada27d1e258d93eb622a3
tree3ae6f5e4f66d7426317b2cacb029d8e6aef9b7b8
parentbaae0de8ec0057cdb93deebfe55bcdbfe30a61eb
Y2038: improve printing of time settings (#1493)

Avoid truncation errors when printing time_t-based squid.conf directives
on platforms with 32-bit int and 64-bit time_t. Also avoid similar
errors when printing time_msec-based directives on platforms with 32-bit
int.

Detected by Coverity. CID 1529622: Use of 32-bit time_t (Y2K38_SAFETY).
src/cache_cf.cc