Add iOS, tvOS, and macCatalyst 16 to supported platforms#2
Merged
Conversation
Lower macOS floor from 14 to 13 for symmetry; the binding constraint is ContinuousClock.Instant on RtspMessageContext, which requires macOS 13 / iOS 16 / tvOS 16 / macCatalyst 16.
steelbrain
added a commit
that referenced
this pull request
May 30, 2026
Cap the unparsed read buffer (4 MiB) and Content-Length (2 MiB) so a camera that never frames a message, or declares an absurd body, can no longer exhaust memory. Trim header field names (not just values) so "CSeq : 1" still routes; tolerate bare-LF line endings and tab/junk in the status line (Postel). Scan for the header terminator in place via withUnsafeBytes instead of copying the whole buffer each call, which was O(n^2) as a body streams in. Addresses audit findings #2/#3/#15/#37/#39/#42/#56. Adds regression tests including a mixed CRLF-headers/bare-LF-terminator case.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Lower macOS floor from 14 to 13 for symmetry; the binding constraint is ContinuousClock.Instant on RtspMessageContext, which requires macOS 13 / iOS 16 / tvOS 16 / macCatalyst 16.