-
Notifications
You must be signed in to change notification settings - Fork 9
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
Use after free abort on invalid program input #4
Comments
|
I've seen something similar with a simple init then teardown of the jq engine (nothing else). Some times it aborts, sometimes not. This is the sort of thing that makes me entertain the idea of rewriting jq in rust, but the libjq api is undocumented and difficult for me to understand. It would be quite an effort. Good to have another test case to help pin down the root cause. Thanks for that. |
|
Actually, I'm still digging. The fix I thought was the fix is not the fix. The best clue I have right now is that the jq binary exits with More in the days to come. |
Updating jq-src to 0.4
While investigating #3, I accidentally used a bad program, which caused the program to crash with a use after free error.
program:
input:
output:
It doesn't always aobrt (as you might expect with errors like these), sometimes it works as expected:
The text was updated successfully, but these errors were encountered: