Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions AUTHORS
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@

Pål-Erik Martinsen <palmarti@cisco.com>
Vladislav Volkov <wwwvladislav@gmail.com>
Marcel De Kogel <mdekogel@cisco.com>
4 changes: 4 additions & 0 deletions src/stunlib.c
Original file line number Diff line number Diff line change
Expand Up @@ -2553,6 +2553,10 @@ stunlib_checkIntegrity(const uint8_t* buf,
msgIntLength = msgIntLength - 8;
}

if (bufLen > STUN_MAX_PACKET_SIZE)
{
return false;
}
memcpy(&bufCopy, buf, bufLen);

/*Write new packet length in header*/
Expand Down