Add connection ID length checks
These changes only impact behavior for versions that support variable length connection IDs, and all of those versions are disabled by flags, so we don't need extra flag protection.
gfe-relnote: add connection ID length checks, protected by disabled quic_enable_v47 flag
PiperOrigin-RevId: 261237221
Change-Id: I89e7bec58644b7ec18e3c7ce3ecbd6d93c9c0fc3
diff --git a/quic/core/quic_framer.h b/quic/core/quic_framer.h
index a05ad8f..94632c6 100644
--- a/quic/core/quic_framer.h
+++ b/quic/core/quic_framer.h
@@ -873,6 +873,8 @@
QuicConnectionId* destination_connection_id,
std::string* detailed_error);
+ bool ValidateReceivedConnectionIds(const QuicPacketHeader& header);
+
// The Append* methods attempt to write the provided header or frame using the
// |writer|, and return true if successful.