Skip to content

Commit 43bddd8

Browse files
committed
- Address build breaks
1 parent f79f513 commit 43bddd8

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

src/core/crypto.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2254,7 +2254,7 @@ QuicCryptoDecodeAddr(
22542254

22552255
QuicAddrSetFamily(Addr, (QUIC_ADDRESS_FAMILY)Family);
22562256
if (Family == QUIC_ADDRESS_FAMILY_INET) {
2257-
if (BufferLength - Offset < sizeof(Addr->Ipv4.sin_addr)) {
2257+
if (BufferLength < Offset + sizeof(Addr->Ipv4.sin_addr)) {
22582258
QuicTraceEvent(
22592259
ConnError,
22602260
"[conn][%p] ERROR, %s.",
@@ -2266,7 +2266,7 @@ QuicCryptoDecodeAddr(
22662266
Offset += sizeof(Addr->Ipv4.sin_addr);
22672267
}
22682268
else if (Family == QUIC_ADDRESS_FAMILY_INET6) {
2269-
if (BufferLength - Offset < sizeof(Addr->Ipv6.sin6_addr)) {
2269+
if (BufferLength < Offset + sizeof(Addr->Ipv6.sin6_addr)) {
22702270
QuicTraceEvent(
22712271
ConnError,
22722272
"[conn][%p] ERROR, %s.",

src/inc/quic_sal_stub.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,10 @@
135135
#define _In_reads_bytes_opt_(...)
136136
#endif
137137

138+
#ifndef _Out_writes_bytes_to_
139+
#define _Out_writes_bytes_to_(...)
140+
#endif
141+
138142
#ifndef _Out_writes_bytes_to_opt_
139143
#define _Out_writes_bytes_to_opt_(...)
140144
#endif

0 commit comments

Comments
 (0)