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: return a fresh scanner instance #346

Merged
merged 1 commit into from
Jun 18, 2024

Conversation

kesselb
Copy link
Contributor

@kesselb kesselb commented Jun 17, 2024

Fix #345

a864119#diff-fef93b10df7e905ff9951ccdf7793f9072e6a5afca34bb1ce050d63d1e32ece1R49 did reintroduce #204.

IContainer.resolve is deprecated, and therefore we need the additional service registration.

@kesselb
Copy link
Contributor Author

kesselb commented Jun 17, 2024

Alternative approach:

Add a retry parameter to ScannerBase.initScanner and copy the infected state only if retry = true.

That requires touching all scanner subclasses, and therefore this simpler approach for now.

Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
@kesselb kesselb force-pushed the bug/345/fresh-scanner-instance branch from 19bc274 to 6250885 Compare June 17, 2024 17:07
Copy link
Member

@st3iny st3iny left a comment

Choose a reason for hiding this comment

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

LGTM!

@icewind1991 icewind1991 merged commit 1966178 into master Jun 18, 2024
46 checks passed
@icewind1991 icewind1991 deleted the bug/345/fresh-scanner-instance branch June 18, 2024 14:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Test with virus test file generates multiple detection errors in unrelated files
3 participants