summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <404610+tatsuhiro-t@users.noreply.github.com>2023-09-16 20:00:42 +0900
committerGitHub <noreply@github.com>2023-09-16 20:00:42 +0900
commit80534d869f7395dc8eeaefdb8a1dee25f2136e26 (patch)
tree5203abde9273aa45ed6c4422d43e7d513d387688
parent2a809a99cd5d9cbd47e43b764a637f5a6d228f2a (diff)
parent52469aba85173fab77d0e7a992491f60c8ca703a (diff)
Merge pull request #2099 from aria2/fix-overflow
Fix overflow
-rw-r--r--src/cookie_helper.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cookie_helper.cc b/src/cookie_helper.cc
index 8ad1e518..18540c65 100644
--- a/src/cookie_helper.cc
+++ b/src/cookie_helper.cc
@@ -302,7 +302,7 @@ std::unique_ptr<Cookie> parse(const std::string& cookieStr,
int64_t n = creationTime;
if (n > std::numeric_limits<int64_t>::max() - delta) {
- maxAge = std::numeric_limits<int64_t>::max();
+ maxAge = std::numeric_limits<time_t>::max();
} else {
n += delta;