Repository navigation
fix(enex): validate large inline images without regexp stack growth - #209
Merged
Merged
Conversation
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars.
|
Contributor
PR StatusUpdated for PR #209 at 📊 Allure Test ReportContributing Workflows
Catalog: All reports 🤖 Android Build PanelCheck a box below to trigger a release build:
|
Deploying everfreenote with
|
| Latest commit: |
8aa8cd1
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://3ed2119d.everfreenote.pages.dev |
| Branch Preview URL: | https://codex-inline-image-validatio.everfreenote.pages.dev |
Contributor
Contributor
New Tests in Allure Report Allure ReportShow 1 new test |
|
This branch was previously deployed
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.



The first main coverage run after #208 rejected a syntactically valid 14,000,000-character base64 image URL: ImageDownloader returned null and the filename assertion failed. Its quantified base64 regexp can overflow the stack when V8 regexp optimization is disabled. The precise V8 tier state in the failed main job is unknown because embedded-image errors deliberately redact their details; the public API failure is independently reproduced in that engine mode.
Remove at most two trailing padding characters, then search for a single invalid alphabet character. Keep the existing MIME whitelist, base64 grouping, proxy restrictions and error redaction. This avoids input-sized regexp stack growth while retaining the accepted short-input grammar.
Validation:
No CI configuration, assertion budget, retry, timeout or source inclusion setting is changed. All fresh GitHub checks passed at 8aa8cd1, including the new regression, core/web unit, all component shards/aggregate, E2E, Build, CodeQL, Semgrep, Cloudflare, SonarCloud and combined Allure publication. The merged main coverage run independently confirmed this Jest fix.
PR Tests 41844354071 retained all 1,146 component identities with zero retries/flaky/skipped cases and complete Allure modeling. Raw coverage retains all 298 source files; instrumentation maps for 297 unchanged files match the baseline, with only the reviewed image-downloader change differing (+7 statements / +5 branch points). Combined report contains 3,285 results and the new regression passed on GitHub. CodeRabbit was automatically skipped because of repository stars, not completed as review.
Rollout: main
fee631bbfa75ca1a88ed053adb5ce2f50fdebd56Jest coverage job passed all 2,179 cases (2,173 passed, six existing skips), including both large-image cases. That parent run is not green: one of 1,146 component cases exposed a native tab-drag snapping race. Its reproduced cause and minimal fix are tracked in #210; the other 1,145 component cases passed.Final rollout: merged main
4c734702412c5b948fc268b37a93043d84a61378coverage run 41854124816 passed all 143 specs / 1,146 original component identities with no retries/flaky/skipped cases; native Jest passed 2,177 with six existing skips (2,183 total). All 298 source maps match the reviewed PR210 tree. Component elapsed 11m57s versus 29m12s baseline (-59.1%); summed family runner time 42m04s (+44.1%). The duplicate main component execution remains removed. Published main report has 3,269 results (3,263 passed, six existing unit skips).All four main Actions workflows succeeded, but the external main SonarCloud quality gate is still FAILED, independently of its scanner job succeeding. The same C security/reliability conditions already failed on pre-optimization main 3852946. Main’s previous-version baseline starts 2026-03-05: 14 older bug/vulnerability findings remain. The one new S3403 warning on
require.main === moduleis a confirmed false positive: direct CLI execution emits the 143-spec plan, importing the module does not execute CLI, and Node documents this exact CommonJS guard. The finding remains visible; no gate, rule or issue status was changed. All PR checks, including the PR Sonar gate, were green at each exact reviewed head before the guarded merges.