Skip to content

Upstream #3165, #3124, #3122: refuse signed control indexes, non-UTF-8 arguments and non-object script params; review r5 - #647

Merged
emmertex merged 4 commits into
mainfrom
upr/hardening-3122-3165
Oct 27, 2026
Merged

emmertex merged 4 commits into
mainfrom
upr/hardening-3122-3165

Conversation

@emmertex

Copy link
Copy Markdown
Owner
  • #3165: pointColor.+0.hueShift (a signed list index) is an unknown control id; usize::from_str used to take the +.
  • #3124: the CLI refuses an argument that isn't valid UTF-8 with a message instead of panicking in std::env::args. The desktop app now reads its arguments lossily for the same reason (found in review).
  • #3122: a run --script line whose params isn't an object is refused before any command runs.
  • What's New: docs/whats-new/2026-10-28-cli-script-checks.md.
  • Upstream review r5 recorded: upstream-reviewed.txt and docs/upstream-pr-reviews/upstream-main-commits.md to current upstream/main, plus open-2930-up.md rows for open PRs 3120–3188 (ADOPT / LEARN / SKIP with reasons). The ports of #3020 and #3168 are in their own PRs.

Checks: cargo xtask ci --fast green; targeted lcc-develop and lcc-cli --test cli tests green.

Sources: upstream PRs #3165 (Silvertree2010), #3124 and #3122 (DAnaeto), hand-ported.

🤖 Generated with Claude Code

emmertex and others added 4 commits October 28, 2026 07:44
…8 CLI arguments and non-object script params

Hand ports of three open upstream PRs (their files moved in the fork:
apps/cli, crates/develop/src/controls.rs). Tests come along, adapted to
the fork's test binary.

Sources: upstream PRs #3165 (Silvertree2010), #3124 and #3122 (DAnaeto).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@emmertex
emmertex merged commit b45ebb6 into main Oct 27, 2026
5 checks passed
@emmertex
emmertex deleted the upr/hardening-3122-3165 branch October 27, 2026 23:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant