-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Extend fuzzing set up #2952
Extend fuzzing set up #2952
Conversation
Adds a parse function ins `jv_parse.c` that enables parsing using custom flags for the parser. This is then used by two fuzzers added as well. This is to make sure fuzzing hits various code parts currently not fuzzed, e.g. `stream_token`: https://storage.googleapis.com/oss-fuzz-coverage/jq/reports/20231125/linux/src/jq/src/jv_parse.c.html#L241 Signed-off-by: David Korczynski <[email protected]>
Am not sure if adding |
I think it's ok to add a new function, but maybe make Thank you for adding more fuzzing! PS: Could you also add a fuzzer for |
Signed-off-by: David Korczynski <[email protected]>
Signed-off-by: David Korczynski <[email protected]>
Done!
Added! Once this is landed I'll add the new fuzzers to https://github.com/google/oss-fuzz/blob/master/projects/jq/build.sh |
Thank you! |
jv_dump() frees its argument. I missed this problem before merging jqlang#2952, whoops! =) fixup from eb3b565
Adds a parse function in
jv_parse.c
that enables parsing using custom flags for the parser. This is then used by two fuzzers added as well.This is to make sure fuzzing hits various code parts currently not fuzzed, e.g.
stream_token
:https://storage.googleapis.com/oss-fuzz-coverage/jq/reports/20231125/linux/src/jq/src/jv_parse.c.html#L241