mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-03-10 19:38:28 +01:00
Added bounds checking to NetDb::HandleDatabaseSearchReplyMsg().
This commit is contained in:
parent
c1ede68a33
commit
e8b4e971f9
1 changed files with 4 additions and 0 deletions
|
@ -952,6 +952,10 @@ namespace data
|
|||
else if(!m_FloodfillBootstrap)
|
||||
LogPrint (eLogWarning, "NetDb: Requested destination for ", key, " not found");
|
||||
|
||||
// All peers hashs in buffer?
|
||||
if(msg->GetPayloadLength() < (size_t) (33 + num * IDENTITY_HASH_SIZE))
|
||||
return;
|
||||
|
||||
// try responses
|
||||
for (int i = 0; i < num; i++)
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue