mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2026-08-22 05:50:40 +00:00
chore: fix memory safety issues
This commit is contained in:
@@ -136,6 +136,7 @@ namespace datagram
|
||||
if (!identityLen) return;
|
||||
const uint8_t * signature = buf + identityLen;
|
||||
size_t headerLen = identityLen + identity.GetSignatureLen ();
|
||||
if (headerLen > len) return;
|
||||
|
||||
std::shared_ptr<i2p::data::LeaseSet> ls;
|
||||
bool verified = false;
|
||||
|
||||
Reference in New Issue
Block a user