mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2026-09-13 21:59:57 +00:00
Test split, coalesced-split and empty handshake records
Signed-off-by: Gilles Peskine <[email protected]>
This commit is contained in:
committed by
Manuel Pégourié-Gonnard
parent
92122edf4b
commit
7c1dbeff49
@@ -3699,6 +3699,7 @@ static int ssl_parse_record_header(mbedtls_ssl_context const *ssl,
|
||||
rec->buf_len = rec->data_offset + rec->data_len;
|
||||
|
||||
if (rec->data_len == 0) {
|
||||
MBEDTLS_SSL_DEBUG_MSG(1, ("rejecting empty record"));
|
||||
return MBEDTLS_ERR_SSL_INVALID_RECORD;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user