Skip to content

Commit 035a249

Browse files
committed
Add test for length larger than 2^16
Signed-off-by: Manuel Pégourié-Gonnard <[email protected]>
1 parent eddde75 commit 035a249

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

tests/suites/test_suite_ssl.tls-defrag.data

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,3 +190,10 @@ send_large_fragmented_hello:MBEDTLS_SSL_IN_BUFFER_LEN - MBEDTLS_SSL_HEADER_LEN -
190190
# got around to checking it confirms reassembly completed sucessfully.
191191
Send large fragmented ClientHello: just fits
192192
send_large_fragmented_hello:MBEDTLS_SSL_IN_BUFFER_LEN - MBEDTLS_SSL_HEADER_LEN - 9:0:"Unsupported version of TLS":MBEDTLS_ERR_SSL_BAD_PROTOCOL_VERSION
193+
194+
# We're generating a virtual record header for the reassembled HS message,
195+
# which requires that the length fits in two bytes. Of course we won't get
196+
# there because if the length doesn't fit in two bytes then the message won't
197+
# fit in the buffer, but still add a test just in case.
198+
Send large fragmented ClientHello: length doesn't fit in two bytes
199+
send_large_fragmented_hello:0x10000:0:"requesting more data than fits":MBEDTLS_ERR_SSL_BAD_INPUT_DATA

0 commit comments

Comments
 (0)