Skip to content

Commit 8696d0d

Browse files
committed
QuicTransportParam_new: update len check
F-431
1 parent 15dbd61 commit 8696d0d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/quic.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ const QuicTransportParam* QuicTransportParam_new(const uint8_t* data,
228228
{
229229
QuicTransportParam* tp;
230230

231-
if (len > 65353) return NULL;
231+
if (len > 65535) return NULL;
232232
tp = (QuicTransportParam*)XMALLOC(sizeof(*tp), heap, DYNAMIC_TYPE_TLSX);
233233
if (!tp) return NULL;
234234
tp->data = (uint8_t*)XMALLOC(len, heap, DYNAMIC_TYPE_TLSX);

0 commit comments

Comments
 (0)