File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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." ,
Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments