Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix superlinear regex #1736

Merged
merged 3 commits into from
May 14, 2024
Merged

Fix superlinear regex #1736

merged 3 commits into from
May 14, 2024

Conversation

Kr0nox
Copy link
Member

@Kr0nox Kr0nox commented Apr 29, 2024

The report viewer was operating with a regex that is vulnerable to superlinear runtime. In theory this should never by a problem, since it is only used in file parsing and thus does not operate on user data. In practice this change can decrease the runtime of the zip parsing, even if it is only slightly.

The check whether the folder name is submissions could be removed, since it was last used in version 4.1.0 which is not supported by the current report viewer

@tsaglam @TwoOfTwelve @uuqjz could you quickly verify that the report viewer with this change works with reports generated under your respective operating systems

@Kr0nox Kr0nox added bug Issue/PR that involves a bug minor Minor issue/feature/contribution/change report-viewer PR / Issue deals (partly) with the report viewer and thus involves web-dev technologies labels Apr 29, 2024
Copy link

Copy link
Contributor

@TwoOfTwelve TwoOfTwelve left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I had no trouble with the changes.

@Kr0nox Kr0nox requested a review from a team May 2, 2024 11:46
@tsaglam tsaglam merged commit 742b46e into develop May 14, 2024
40 checks passed
@tsaglam tsaglam deleted the report-viwer/fix-superlinear-regex branch May 14, 2024 07:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issue/PR that involves a bug minor Minor issue/feature/contribution/change report-viewer PR / Issue deals (partly) with the report viewer and thus involves web-dev technologies
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants