mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #5937] The client tag parser has the same polynomial-regex shape the server-side one just fixed #3283
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#3283
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 @kolacheee on GitHub (Sep 7, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/5937
Originally assigned to: @SpicyMarinara on GitHub.
While closing a CodeQL polynomial-regex finding in the shared skill-check tag parser,
the verification pass measured the sibling parser one file over and found the same
class:
parseTagAttributesinpackages/client/src/lib/game-tag-parser.ts(~line129) takes ~7.9 seconds on a tag body of 60,000 repeated zeros, growing
quadratically. It is pre-existing on staging, client-side, and was not what CodeQL
flagged — but it parses the same model-authored tag bodies, so the same adversarial
shape reaches it.
The exposure is bounded (the input is the model's own generated text, and the parse
runs on the client), so this is a hardening follow-up rather than an urgent hole. The
smallest honest fix is the same shape that closed the server-side finding: replace
the ambiguous repetition with a linear scan or a possessive-style pattern, and pin it
with the same many-zeros timing case, sized around 24k zeros where the
quadratic/linear separation is unambiguous at a fraction of the cost.
@SpicyMarinara commented on GitHub (Sep 8, 2026):
@SpicyMarinara (Codex) is handling this issue in the maintainer-requested Issue Sweep PR #5962. Existing implementation PRs, draft PRs and issue-linked branches were checked before starting. The fix will reuse existing code and include focused regression proof; this comment records ownership, not completion.