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

Bugs found by kdl-gen #8

Open
hkolbeck opened this issue Dec 5, 2022 · 0 comments
Open

Bugs found by kdl-gen #8

hkolbeck opened this issue Dec 5, 2022 · 0 comments

Comments

@hkolbeck
Copy link
Member

hkolbeck commented Dec 5, 2022

I've been testing kdl4j using the KDL document generator I wrote for fuzz testing, found here: https://github.com/hkolbeck/kdl-gen

I have not yet identified the source of all issues, but they can be reproduced by running kdl-gen and piping the result to https://github.com/hkolbeck/kdl4j/blob/trunk/src/main/java/dev/hbeck/kdl/Fuzzer.java. Due to a limitation of the BigDecimal class used internally, the kdl-gen argument --num-len-max should be set to 8 or less. It can be useful to utilize the --ascii-only flag as well if the issue doesn't depend on unicode.

When run, kdl-gen prints a seed value to stderr, if invoked again passing --seed <SEED> with the same arguments other than --debug it will replicate the same output. See the kdl-gen readme for info on possible arguments.

I'll call this closed when piping kdl-gen to the Fuzzer can be done 10,000 times in a loop with no parse errors.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant