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 acceleration code to use RapidJSON properly #4236

Merged
merged 1 commit into from
Apr 2, 2018

Conversation

obelisk
Copy link
Contributor

@obelisk obelisk commented Mar 30, 2018

The acceleration code was not updated to reflect the proper typing of RapidJSON deserialization, thus we were always failing the IsString() check and never running accelerated mode.

This is just a simple fix to use the API correctly. I'm marking it as API Change because in theory would have worked before if you made accelerate a string (even though it was supposed to be an int) and now it must be an int.

@obelisk obelisk requested a review from fmanco March 30, 2018 02:58
@facebook-github-bot facebook-github-bot added the cla signed Automated label: Pull Request author has signed the osquery CLA label Mar 30, 2018
@osqueryer
Copy link

👎 The commit fc691dd (Job results: 3657) failed one or more tests (Windows).

@osqueryer
Copy link

👎 The commit fc691dd (Job results: 3658) failed one or more tests (Windows).

@obelisk obelisk changed the title Reorganize the code to use RapidJSON properly Fix acceleration code to use RapidJSON properly Mar 30, 2018
Copy link
Contributor

@muffins muffins left a comment

Choose a reason for hiding this comment

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

This lgtm, but could use some tests ;)

@muffins
Copy link
Contributor

muffins commented Apr 2, 2018

ok to test

@muffins muffins dismissed their stale review April 2, 2018 17:06

This LGTM, would you mind filing a follow-up issue to land tests for this?

@muffins muffins merged commit 21cae03 into osquery:master Apr 2, 2018
trizt pushed a commit to trizt/osquery that referenced this pull request May 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
API change bug cla signed Automated label: Pull Request author has signed the osquery CLA distributed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants