You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Project idea] Find lack of diff coverage using fuzzing #31
We can employ cargo-fuzz or cargo-afl to find two jsonschemas that are not compatible with each other, but produce no diff by the tool.
afl produces a random bytestring. we
parse that bytestring into a lhs schema, a rhs schema, and a payload that we should validate against both schemas
if that parsing already fails, just pass the test
if the payload validates against both schemas, pass the test
if the payload validates against lhs but not rhs, AND json-schema-diff produces no breaking changes, crash
on steps 2 and 3, we will discard a lot of payloads. afl will complain about this and say that coverage does not increase. but it will likely still find a lot of cases, if running long enough.
Activity
untitaker commentedon May 12, 2023
This fuzzer can probably be seeded with schema definitions, diffs and example data from sentry-kafka-schemas.