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

Changing lists while making an analysis cause errors #10

Merged
1 commit merged into from Nov 24, 2022
Merged

Conversation

ghost
Copy link

@ghost ghost commented Nov 19, 2022

The regexList and extensionsList are passed as a reference to the Scanner. The Scanner uses them while scanning, but if they change while scanning, problems occur.

With this fix, when an analysis is started, a copy of the current state is saved. Then, the Scanner uses this copy instead of the original list so that changes don't interfere with the analysis.

The regexList and extensionsList are passed as a reference to the
Scanner. The Scanner uses them while scanning, but if they changed while
scanning problems occur.

With this fix, when an analysis is started, a copy of the current state
is saved. Then, the Scanner uses this copy instead of the original list
so that it can be changed without interferring with the analysis.
@ghost ghost added the fix/scanner Fixes a bug in the Scanner label Nov 19, 2022
@ghost ghost requested a review from alessiodallapiazza November 19, 2022 13:31
@ghost ghost self-assigned this Nov 19, 2022
@ghost ghost merged commit 534ce69 into master Nov 24, 2022
@ghost ghost deleted the fix-option-lists branch November 24, 2022 13:05
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fix/scanner Fixes a bug in the Scanner
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants