mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2026-10-23 00:01:43 +00:00
fix: missing checks and limits
This commit is contained in:
9 files changed
+46
-8
No files matched your search
@@ -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 ())
|
||||
|
||||
Reference in new issue
Block a user