Repository navigation
Conversation
- ax: the passcode field fallback needs words between the numbers ("6:00" isn't
one); assemble looks attributes up by (pid, id); DTX fragments are counted
and compared in u32, conversations wrap
- webinspector: a session is closed and forgotten on every path; a write that
stops half-way marks the connection broken (the daemon reopens it); the
final piece counts toward the size limit; a refused Target wrapper ends the
wait
- WDA HTTP: chunk sizes can't overflow and must end in CRLF; trailers are read
through; a head that doesn't end in 64 KB is refused
- FLV: a header length past 1 KB is refused
- vt.rs (macOS): CFData lengths checked, avcC field limits, at most 8 H.264
frames ahead of the caller
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…in 1.99, try_update not in 1.89) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- A head not ended within 64 KB is refused once 64 KB are read: parse_head looks no further, so more bytes can't complete it. - The doc line of `response_for` had ended up above `answer_to`'s. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This branch has not been deployed
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.
What and why
P1, fourth batch, from the full review of
mainafter #195: protocol parser edges.xml.rs: with no known word, a text field was taken for the lock screen's passcode field when the larger of its two numbers was 4 or 6. So "6:00", "2/4" and "1.6" became aSecureTextField, andcover_sheetthen read the screen as locked. The fallback now also needs words between the numbers (digit_runs); every language's field reads as a sentence, while times, fractions and decimals have punctuation only. "6 中 3" still counts.tree::assemblelooked attributes up by the wholeObjectRef,is_appincluded: a child referenced with the other flag was left out with its subtree. Now it looks up by(pid, id)and keeps the stored reference.dtx.rs:fragment + 1was a u16 sum (it overflowed on fragment 65535); fragments carrying nothing could come without end;conversation + 1could overflow. Now: compared in u32, at most 4096 fragment headers per message,wrapping_add.evaluatecloses and forgets the session on every path. A failed setup used to leaveopen_sessionsanddatabehind, and the session's messages kept piling up.broken: nothing more is written, andis_broken()tells the daemon, which drops the connection even when the value came back. The close's timeout used to be swallowed bylet _ =, and the out-of-step connection was reused.WIRFinalMessageKeycounts toward the 64 MB limit.Target.sendMessageToTargetwrapper ends the wait (answer_to) instead of running to the timeout.http.rsdechunk:size + 2is checked and each chunk must end in CRLF.ends_with("0\r\n\r\n")), and WDA doesn't close the connection, so it waited for the timeout.CFDataGetLengthgoes throughusize::try_from.build_avccrefuses what its fields can't hold (over 31 SPS, over 255 PPS, sets over 64 KB).Sink::queued, counted as sent, so frames the encoder drops never block it); meanwhilepushkeeps replacing the waiting JPEG.Tests
1. Unit tests
cargo test --workspace --all-features --locked: 587 passed; clippy-D warnings;cargo fmt --checkfor all 11 packages;tests/check_regression_cases.py: 0 missinga_child_is_found_whatever_its_reference_says_about_being_an_app,odd_fragment_counts_end_and_counters_dont_overflow,a_failed_write_leaves_nothing_behind,a_refused_wrapper_ends_the_wait,a_huge_last_piece_is_refused,chunked_edges,an_endless_head_is_refused; cases added tothe_lock_screen_passcode_field_reads_as_secure,other_input_is_an_error(FLV),avcc_from_parameter_sets(macOS)vt.rsonly builds on macOS: compiled and tested by the CI's macOS job, not here2. Real-device regression
tests/device/run.py:3. Regression cases
4. Real-device proof
web_evalon Safari's example.com:document.title + location.hostand a promise (42) both answered/videothrough the viewer (H.264 through the FLV reader): 1.7 MB in 6 sChecklist
🤖 Generated with Claude Code