Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upfuzzer: Have it re-encode successfully parsed data #1626
Comments
brian-brazil
added
the
kind/enhancement
label
May 19, 2016
brian-brazil
added
priority/P3
component/promql
labels
Jul 14, 2017
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
msiebuhr commentedMay 12, 2016
•
edited
Dmitry suggests (in dvyukov/go-fuzz#127 (comment)) to expand the fuzzing by having it re-encode/stringify the decoded datastructure.
I'm not familiar with the different parses, but I imagine several of them have some re-encodable output.
Possibly check that it matches the parsed input and/or re-parse it and verify it matches the originally parsed out data structure.