mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #8053] [Issue]: Harden regex safety checks for character imports and display scripts #7539
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#7539
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @SpicyMarinara on GitHub (Oct 22, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/8053
Originally assigned to: @SpicyMarinara on GitHub.
Summary
Fix the two open CodeQL regex-injection reports (#659 and #660). The safety checker can evaluate unvalidated pattern fragments, and its repeated-alternative check misses overlapping literal and character-class alternatives.
Expected behavior
Safety checking must finish without executing an imported pattern. Ambiguous repeated alternatives must be rejected before import or display processing.
Actual behavior
Bounded local probes of main and staging confirm stalls during both safety evaluation and client display processing. Existing focused regressions pass without covering these cases.
Steps to reproduce
Environment
457e827a; staging010829b3Logs, screenshots, or video
Isolated child processes exceeded their 2–2.5 second deadlines.
Additional context
Owner: @SpicyMarinara, implemented by Codex at the maintainer's request for staging delivery and subsequent alert closure. Keep changes in shared safety analysis; client compilation caching remains owned by #8052.
Template check
@SpicyMarinara commented on GitHub (Oct 22, 2026):
Delivered to staging in PR #8055, merge
1a46e71852. All required checks, all platform jobs, and final-head Dottore Review passed (Viable; zero defects or notes). Both CodeQL analyses report zero results. Alerts #659 and #660 are dismissed as mitigated with explicit staging-fix notes; main awaits normal promotion. No open code-scanning alerts remain.