-
Notifications
You must be signed in to change notification settings - Fork 113
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
feat: add a fuzz test for kclvm-parser.parse_expr. #32
Conversation
Note: 1. "PanicInfo.to_json_string" has been modified. 2. Some problems detected by the fuzz test will be solved soon. What: 1. Add a fuzz test for kclvm-parser.parse_expr. 2. "PanicInfo.to_json_string" has been modified. 3. Remove some unusd imports. 4. In order to adapt to the new "PanicInfo.to_json_string", some code have been changed. How: 1. Add "fuzz/fuzz_parser" in kclvm/tests. 2. Init kclvm/tests to a cargo project. 3. Add fuzz-parser in Makefile. 4. Remove some unusd imports. 5. "PanicInfo.to_json_string" has been modified by "serde_json::to_string". 6. Change all “$__kcl_PanicInfo__$” to “__kcl_PanicInfo__”. Why: 1. Add a fuzz test in order to detect more bugs. 2. "serde" provides a better interface for serialization/deserialization of “PanicInfo”. 3. Serialization/Deserialization of “PanicInfo" is helpful for catching panic errors in fuzz. 4. "cargo fuzz" can only be used under a cargo project.
688b9ce
to
4f766e3
Compare
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.
LGTM
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.
LGTM
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.
pls fix all "$kcl_PanicInfo$" in python: https://github.com/KusionStack/KCLVM/blob/dev/zong-zhe/add_kclvm_fuzzer/internal/kclvm_py/program/exec/kclvm_cli.py#L22
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.
LGTM
Note:
What:
some code have been changed.
How:
Why:
main