Merge pull request #10838 from cyberstormdotmu/loganaden-patch-wolfssl_quic_underflow

quic: Fix buffer underflow
This commit is contained in:
Aidan Garske
2026-07-07 13:30:26 -07:00
committed by GitHub
+5
View File
@@ -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;