Fuzzing decoders
For context have a look at go-fuzz
Corpus sample data is in directory fuzz/corpus/samples.aws
To fuzz the template decoding for instance do the following steps:
- Build with
go-fuzz-build github.com/hbbio/awless/template/fuzz/{parsing,parameters}
- Then
go-fuzz -bin={parsing,parameters}-fuzz.zip -workdir=workdir
- Stop (with Ctr+C) when enough. Look at the results. Fix the bugs and clean up the generated unneeded data (
rm -rf {parsing,parameters}/workdir/{crashers,suppressions}
)