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 regression: missing string coercion for old-style negated filters #263

Merged
merged 1 commit into from
Oct 25, 2024

Conversation

psrok1
Copy link
Member

@psrok1 psrok1 commented Oct 24, 2024

v5.5.0 introduced regression for negated boolean old-style filters. Because negation was done by adding "!", filter matching function was doing an implicit header value conversion to string.

This behavior was unintentionally changed by v5.5.0 as new-style (Mongo-style) filters don't perform any type coercions.

One of the affected components by this regression is Drakvuf Sandbox that uses {"execute": "!False"} to filter out all samples that should not be executed. These samples are marked with {"execute": False} header, so conversion to string in this case is expected.

@psrok1 psrok1 requested a review from msm-cert October 24, 2024 12:51
@psrok1 psrok1 merged commit f6cb6a5 into master Oct 25, 2024
6 checks passed
@psrok1 psrok1 deleted the fix/old-style-filter-coercion branch October 25, 2024 12:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant