Description
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.