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 config validation oom with duplicated keys #6876

Merged

Conversation

Smjert
Copy link
Member

@Smjert Smjert commented Dec 31, 2020

This fixes a pathological case where the validation algorithm
is unable to verify if there's a deeply nested tree,
and it can end up into an oom situation.

Added a regression test to verify this case.

This has been found by oss-fuzz.

This fixes a pathological case where the validation algorithm
is unable to verify if there's a deeply nested tree,
and it can end up into an oom situation.

Added a regression test to verify this case.
@theopolis theopolis merged commit 66a20d0 into osquery:master Jan 1, 2021
@Smjert Smjert deleted the stefano/fix/config-validation-oom branch February 6, 2021 18:36
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.

None yet

2 participants