mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2026-07-08 13:40:51 +02:00
Merge pull request #10838 from cyberstormdotmu/loganaden-patch-wolfssl_quic_underflow
quic: Fix buffer underflow
This commit is contained in:
@@ -849,6 +849,11 @@ static int wolfSSL_quic_send_internal(WOLFSSL* ssl)
|
||||
}
|
||||
else {
|
||||
/* at start of a TLS Record */
|
||||
if (length < RECORD_HEADER_SZ) {
|
||||
WOLFSSL_MSG("WOLFSSL_QUIC_SEND application failed");
|
||||
ret = FWRITE_ERROR;
|
||||
goto cleanup;
|
||||
}
|
||||
rl = (RecordLayerHeader*)output;
|
||||
ato16(rl->length, &rlen);
|
||||
output += RECORD_HEADER_SZ;
|
||||
|
||||
Reference in New Issue
Block a user