fix: deep dive audit fixes, browser split, error standardization, PSP warnings#58
Merged
AndrewAltimit merged 4 commits intomainfrom Mar 9, 2026
Merged
fix: deep dive audit fixes, browser split, error standardization, PSP warnings#58AndrewAltimit merged 4 commits intomainfrom
AndrewAltimit merged 4 commits intomainfrom
Conversation
- Fix moov atom overwrite race in download.rs: the seek-restart path was overwriting moov data (set by tail probe for moov-at-end files) with raw buffer contents. Now stores buffer as header instead of replacing moov, preventing decoder corruption on moov-at-end files. - Fix streaming race conditions: upgrade Relaxed -> Release/Acquire ordering on decoder_pos, probe_mode atomics. Relaxed was insufficient for coordinating seek-restart + throttle-check and probe-to-decode transitions across threads. - Fix PSP video codec EDRAM leak: add sceVideocodecStop cleanup on sceVideocodecGetEDRAM failure path, preventing Media Engine resource leaks on repeated init failures. - Fix PSP plugin stride validation: validate framebuffer stride in overlay::on_frame() to prevent integer overflow in pixel offset calculations (py * stride + px) from games with unexpected values. - Fix SDL3 Cargo.toml description: SDL2 -> SDL3 (migration was complete but description wasn't updated). - Add safety documentation to FFI fire_callback clarifying CString lifetime correctness (bound by let-chain, lives for entire block). Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Extract 2,320-line test module from browser lib.rs into browser_tests.rs, reducing lib.rs from 2,771 to 451 lines. Standardize error handling across workspace: convert VideoError, LiteError, JsError, CalcError from manual Display/Error impls to thiserror derives. Add Video, JavaScript, Calc variants to central OasisError. CalcError gains its first std::error::Error impl (was Display-only). Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Remove sceVideocodecStop from PSP video init error path — the function does not exist in the PSP SDK (only Open/GetEDRAM/Init/Decode/ReleaseEDRAM are available). Regenerate all 19 skin screenshots. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
PSP EBOOT (50 warnings → 0): - Wrap unsafe PSP syscalls in inner unsafe blocks (Rust 2024 edition) - Add #[allow(dead_code)] to legacy chrome/theme/input/skins/textures modules (superseded by SDI-based views, kept for reference) - Remove unused imports and prefix unused variables with underscore - Remove unused asm_experimental_arch feature gate PSP Plugin PRX (8 warnings → 0): - Remove unused imports (write_u32_decimal, Ordering) - Suppress unused-assignment warnings on edram_allocated tracking vars - Add #[allow(dead_code)] to utility functions (flush_framebuffer, write_u32_pad2, music_dir_str) - Remove unused asm_experimental_arch feature gate Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Gemini AI Code ReviewIssues (if any)(none) Previous Issues (for incremental reviews)(none) Suggestions (if any)
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
browser_tests.rs(lib.rs: 2,771->451 lines)Test plan
cargo build --workspacepassescargo test --workspace-- all tests passcargo clippy --workspace -- -D warnings-- cleancargo fmt --all -- --check-- cleanGenerated with Claude Code (https://claude.com/claude-code)