mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #4984] Fix residual polynomial parsing paths found by CodeQL #2764
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#2764
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 (Aug 13, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/4984
Originally assigned to: @SpicyMarinara on GitHub.
Summary
CodeQL still reports two polynomial-time parsing paths on staging after the broader security cleanup: inline VN dialogue normalization and bracketed character-macro detection.
Expected behavior
Malformed or very large user/model-authored text should be parsed in linear time while all valid VN dialogue tags and character macros continue to work unchanged.
Scope
Replace the two ambiguous regex paths with narrowly bounded parsing, add adversarial timing and behavior regressions, and do not add content-size caps or remove supported imports/features.
Findings
@SpicyMarinara commented on GitHub (Aug 13, 2026):
Ownership: @SpicyMarinara is implementing this on
agent/code-scanning-residuals. A draft PR will be opened as soon as the focused patch is present.@SpicyMarinara commented on GitHub (Aug 13, 2026):
Fixed and merged into
stagingby #4985. The fresh JavaScript CodeQL scan, validation, container build, focused security regressions, and CodeRabbit review all passed.