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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ignore types unrelated to the configuration in the summarize plugin #2258
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm currently deploying this to the testbed; but I'm not sure about including the complete rewrite of record_type::transform()
into the release. Would it make sense to split this and get just the bugfix in?
This actually fixed another bug for record types like this:
Where before this change when removing
rather than the correct:
So no, I think we actually need to get that fix in as well. Users were theoretically able to trigger it with carefully crafted data. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tbh, I didn't 100% read through the changed logic in record_type::transform
, but approving anyways since unit test coverage seems good and it's definitely fixing the segfault that used to appear in the testbed.
EDIT: The second bugfix still needs a changelog entry, though.
Good point. I've added a second one. Thanks for testing on the testbed @lava. |
This fixes a segfault in the
summarize
transform step when its configuration caused all fields to be dropped from the table.馃摑 Checklist
馃幆 Review Instructions
Run this on our testbed and check that we encountered that same issue there. The unit test this adds crashes without the additional changes to the plugin and to libvast.