Repository navigation
fix: address verified findings from Cora scan - #137
Merged
Merged
Conversation
…es, DNS timeout, filters, misc) Closes #136 Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
🔍 Cora AI Code Review✅ No issues found. Code looks good! Review powered by cora-code · BYOK · MIT |
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
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
Fixes the verified items from a
cora scantriage: CLI temp input files, empty-slides panic, DNS timeout, local image read cap, escaped input inb64/wordwrapfilters, and several small correctness/hardening fixes.Why
Cora flagged 37 items; after triage the real ones were: fixed
/tmp/cosy-*-input.jsonnames (clobbering, symlink risk, never cleaned),slides[0]panics underpanic=abort, unbounded DNS/local reads, and filters receiving XML-escaped text (&in URLs, entities split by wrapping). Closes #136. False positives (emptyCOSY_SIGNING_KEY, default bind, CORS, CLI template paths) were deliberately left alone.How
TempInputguard: unique name,create_new, 0600, removed on drop.slide_at()+ early bail for empty slides;--dump-svgguarded too.resolve_with_timeout(helper thread +recv_timeout);File::takecap for local images.unescape_xml_entitiesused bywordwrap/b64;is_xml_charrange check for numeric refs.--scalevalue parser, CSV BOM,HTTP://, NAT64/doc IPv6, comment fixes.Testing
cargo testpasses (new tests for each fix)cargo fmt --all -- --checkpassescargo clippy --all-targets -- -D warningspassescargo build --releasepasses (CI)Related Issues
Closes #136
Checklist
develop🤖 Generated with Claude Code