Skip to content

Commit 718f62e

Browse files
Pavel SiskaPavel Siska
authored andcommitted
Quic: Fixed payload buffer overflow
1 parent cfbc8de commit 718f62e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

process/quic.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1199,6 +1199,9 @@ bool QUICPlugin::quic_parse_data(const Packet &pkt,RecordExtQUIC * rec)
11991199

12001200
// same as token length, payload length has variable length, after this offset should point to the packet number
12011201
payload_len = quic_get_variable_length(tmp_pointer,offset);
1202+
if (payload_len > CURRENT_BUFFER_SIZE) {
1203+
return false;
1204+
}
12021205

12031206
if ((tmp_pointer + offset) > payload_end) {
12041207
return false;

0 commit comments

Comments
 (0)