mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-05-20 22:31:47 +02:00
fixed buffer overflow
This commit is contained in:
parent
d8fb0a23c8
commit
42dd8dd72e
2 changed files with 2 additions and 1 deletions
|
@ -253,6 +253,7 @@ namespace ssu
|
|||
while (len > 0)
|
||||
{
|
||||
Fragment * fragment = new Fragment;
|
||||
fragment->fragmentNum = fragmentNum;
|
||||
uint8_t * buf = fragment->buf;
|
||||
fragments.push_back (fragment);
|
||||
uint8_t * payload = buf + sizeof (SSUHeader);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue