fix: missing checks and limits

This commit is contained in:
jpk68 committed 2026-09-16 08:47:15 -04:00
1 parent 8c833634ca
commit 5e93f74e19
9 files changed
+46 -8

No files matched your search

+1
View File
@@ -556,6 +556,7 @@ namespace data
if (allzeros)
{
// offline information
if (ret + 6 > len) return 0; // expires(4) + key type(2)
const uint8_t * offlineInfo = buf + ret;
uint32_t expires = bufbe32toh (buf + ret); ret += 4; // expires timestamp
if (expires < i2p::util::GetSecondsSinceEpoch ())