Skip to content
Merged
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
8fa9fae
fixed .net test issue for opensuse 16 and sles 16
gaurav2699 Mar 23, 2026
1071065
merge
gaurav2699 May 11, 2026
298714b
Merge branch 'main' of https://github.com/microsoft/msquic
gaurav2699 May 14, 2026
b053b33
Merge branch 'main' of https://github.com/microsoft/msquic
gaurav2699 May 21, 2026
5b5b933
Merge branch 'main' of https://github.com/microsoft/msquic
gaurav2699 May 28, 2026
0194d49
Merge branch 'main' of https://github.com/microsoft/msquic
gaurav2699 Jun 1, 2026
6efd483
Merge branch 'main' of https://github.com/microsoft/msquic
gaurav2699 Jun 23, 2026
38d7f3a
erge branch 'main' of https://github.com/microsoft/msquic
gaurav2699 Jul 2, 2026
9ae9fa3
Merge branch 'main' of https://github.com/microsoft/msquic
gaurav2699 Jul 10, 2026
f527d14
Merge branch 'main' of https://github.com/microsoft/msquic
gaurav2699 Jul 16, 2026
beabe69
Merge branch 'main' of https://github.com/microsoft/msquic
gaurav2699 Jul 17, 2026
10c75c4
Merge branch 'main' of https://github.com/microsoft/msquic
gaurav2699 Jul 20, 2026
9537b63
Merge branch 'main' of https://github.com/microsoft/msquic
gaurav2699 Jul 28, 2026
0287dc4
Merge branch 'main' of https://github.com/microsoft/msquic
gaurav2699 Aug 3, 2026
19a54a9
Fix TLS openssl Finsihed OOB read
gaurav2699 Aug 10, 2026
3b66182
reordered logic
gaurav2699 Aug 11, 2026
f6215fb
refactored comment
gaurav2699 Aug 12, 2026
c278065
Merge branch 'main' into fix-tls-openssl-finished-oob-read
gaurav2699 Aug 12, 2026
b754d28
formatted comment
gaurav2699 Aug 12, 2026
57d619e
Merge
gaurav2699 Aug 12, 2026
6fc62b9
formatting comment
gaurav2699 Aug 12, 2026
f0dd8a3
Made check less strict
gaurav2699 Aug 13, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 15 additions & 18 deletions src/platform/tls_openssl.c
Original file line number Diff line number Diff line change
Expand Up @@ -2868,31 +2868,28 @@ static int SplitAddRecord(RECORD_ENTRY *Entry, size_t *Consumed)
message_size = htonl(message_size) & 0x00ffffff;

//
// Stop processing if this is a handshake finished record
// If this message extends past the end of the record, its remainder
// is in a later datagram, so it is incomplete.
//
if (message_type == SSL3_MT_FINISHED) {
//
// Trim the buffer so we end on a record boundary
// Everything after the HandShakeFinished record
// Is just padding
//
Entry->RecLen = total_message_size + message_size + 4;
goto insert_now;
if (total_message_size + message_size + 4 > Entry->RecLen) {
Incomplete = 1;
}

//
// If this message is larger then the total record length
// then we need to create an Incomplete record as its remainder
// is in the next datagram
// also, if this is an epoch key change message (8 is EncryptedExtensions)
// then we need to split it as rcv_rec expects that
// Note we only need to force the split if the epoch change
// isn't the first message in this record
// A complete handshake FINISHED ends the flight, so trim the record
// to its end and ignore any padding that follows. An incomplete one
// is handled like any other incomplete message below.
//
if (total_message_size + message_size + 4 > Entry->RecLen) {
Incomplete = 1;
if (message_type == SSL3_MT_FINISHED && Incomplete == 0) {
Entry->RecLen = total_message_size + message_size + 4;
goto insert_now;
}

//
// An epoch key change message (8 is EncryptedExtensions) must be
// split as rcv_rec expects it isolated, but only if it isn't the
// first message in this record.
//
if ((message_type == 8) && (total_message_size != 0)) {
force_split = 1;
}
Expand Down
Loading