Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request from GHSA-x236-qc46-7v8j
* Restrict the usable port range of the validator such that adding QUIC_PORT_OFFSET never gets us an invalid port. Also validate this for incoming ContactInfos * Require the proper port range in ContactInfo::valid_client_facing_addr * Use asserts instead of panics, and enforce USABLE_PORT_RANGE for all the ports in ContactInfo * Fix typo * Make the quic client return errors on the quinn endpoint connect() call, not just the result of awaiting the connect() call, as the connect() call can itself fail realistically (e.g. due to expected/invalid IPs, etc) * Update USABLE_PORT_RANGE to a better range and use port_range_validator to validate dynamic-port-range rather than a panic * Fall back on UDP when the remote peer's tpu port is too large to have QUIC_PORT_OFFSET added to it * Get rid of tpu port sanitization in ContactInfo * Turn USABLE_PORT_RANGE into a Range and make connnection_cache fall back on UDP when the tpu port is out of range * Fix build * Dummy commit * Reert dummy commit * dummy commit * revert dummy commit * Fix typo * Fix range validation * Fix formatting * Fix USABLE_PORT_RANGE * Remove USABLE_PORT_RANGE * Avoid creating a QuicLazyInitializedEndpoint when forcing the use of UDP * Implement test for connection cache overflow
- Loading branch information