Skip to content

Commit 6271e0e

Browse files
committed
Fix integer overflow on 32-bit in ExtDS
1 parent c4143b4 commit 6271e0e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/jrd/extds/ExtDS.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@
3030
#include "../../common/classes/locks.h"
3131
#include "../../common/utils_proto.h"
3232

33+
#include <limits>
34+
3335

3436
namespace Jrd
3537
{
@@ -366,7 +368,7 @@ class ConnectionsPool
366368
clear();
367369
m_conn = NULL;
368370
m_hash = hash;
369-
m_lastUsed = MAX_SINT64;
371+
m_lastUsed = std::numeric_limits<time_t>::max();
370372
}
371373

372374
void clear() noexcept

0 commit comments

Comments
 (0)