fix: systematic deep dive audit -- security, safety, docs, module split#59
Merged
AndrewAltimit merged 2 commits intomainfrom Mar 9, 2026
Merged
fix: systematic deep dive audit -- security, safety, docs, module split#59AndrewAltimit merged 2 commits intomainfrom
AndrewAltimit merged 2 commits intomainfrom
Conversation
… split Security fixes: - Refuse PSK auth without TLS (client returns error, listener rejects) - Add 30-second auth timeout to remote terminal client - Add 16KB HTTP header size limit to prevent memory exhaustion - Accept LF-only line endings in HTTP responses (RFC 7230 §3.5) Safety fixes: - Add explicit Drop impl for SdlBackend to clear textures before texture_creator, removing fragile field-ordering UB dependency - Add SAFETY docs to 14 unsafe fn declarations in PSP threading.rs - Add SAFETY docs to 8 unsafe fn declarations in PSP plugin decode.rs - Add SAFETY comments to 10 bare unsafe blocks in PSP TLS/networking Code quality: - Extract drag_resize.rs from WM manager.rs (2710→1821 lines) - Remove dead code: read_u16_be (demux_lite), selected_is_dir (file_manager) - Add cancellation token to video streaming tail probe thread - Wire cancelled_flag() through fetch_range for cooperative abort - Update PSP Cargo.lock Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Fix "17 skins" → "18 skins" across all docs (CLAUDE.md, AGENTS.md, README.md, design.md, getting-started.md, testing-gap-analysis.md, psp-modernization-plan.md, site/index.html) - Fix "27 widgets" / "20+ widgets" / "30+ widgets" → "32 widgets" across all docs to match actual widget module count - Fix AGENTS.md skin counts: "11 external, 17 built-in" → "12 external, 18 built-in" - Fix README.md crate table: "12 external + 7 built-in" → "12 external + 18 built-in" - Fix ADR-003 title: "Four Traits" → "Five Traits" (AudioBackend added) - Fix psp-modernization-plan: "30 extended" → "39 extended" - Update security.md: document PSK requires TLS, 30s auth timeout - Fix site/demo/index.html: move Altimit to "New Skins" group to match www/index.html dropdown Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Gemini AI Code ReviewIssues (if any)
Previous Issues (for incremental reviews)(none) Suggestions (if any)(none) Notes
Generated by Gemini AI (gemini-3.1-pro-preview). Supplementary to human reviews. |
Owner
Author
Review Response Agent (Iteration 1)Status: No changes needed Fixed Issues
Ignored Issues
Deferred to Human
Notes
The agent reviewed feedback but determined no code changes were required. |
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.

Summary
Comprehensive audit addressing security, safety, code quality, and documentation issues identified during a deep dive analysis of the entire codebase.
Security fixes
MAX_HEADER_SIZEprevents memory exhaustion from malicious servers. Also accepts LF-only line endings per RFC 7230 S3.5Safety fixes
Dropimpl clears textures beforetexture_creator, removing fragile struct field-ordering UB dependency# Safetydocs to 22unsafe fndeclarations and// SAFETY:comments to 10 bareunsafeblocks across PSP backend and pluginCode quality
drag_resize.rs(953 lines) frommanager.rs(2710 to 1821 lines) -- drag/resize state machine, click dispatch, edge snapping, position clampingread_u16_be(demux_lite) andselected_is_dir(file_manager)cancelled_flag()accessor threaded throughfetch_rangeDocumentation sync
Build verification
Test plan
cargo test --workspace-- 5,392 tests, 0 failurescargo clippy --workspace -- -D warnings-- cleancargo fmt --all -- --check-- cleancargo +nightly psp --release)./scripts/build-wasm.sh --release)Generated with Claude Code