mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2026-07-05 15:50:51 +02:00
QuicTransportParam_new: update len check
F-431
This commit is contained in:
+1
-1
@@ -228,7 +228,7 @@ const QuicTransportParam* QuicTransportParam_new(const uint8_t* data,
|
||||
{
|
||||
QuicTransportParam* tp;
|
||||
|
||||
if (len > 65353) return NULL;
|
||||
if (len > 65535) return NULL;
|
||||
tp = (QuicTransportParam*)XMALLOC(sizeof(*tp), heap, DYNAMIC_TYPE_TLSX);
|
||||
if (!tp) return NULL;
|
||||
tp->data = (uint8_t*)XMALLOC(len, heap, DYNAMIC_TYPE_TLSX);
|
||||
|
||||
Reference in New Issue
Block a user