image-fuzzer: Fuzzing functions for qcow2 images
The fuzz submodule of the qcow2 image generator contains fuzzing functions for image fields. Each fuzzing function contains a list of constraints and a call of a helper function that randomly selects a fuzzed value satisfied to one of constraints. For now constraints include only known as invalid or potentially dangerous values. But after investigation of code coverage by fuzz tests they will be expanded by heuristic values based on inner checks and flows of a program under test. Now fuzzing of a header, header extensions and a backing file name is supported. Reviewed-by: NStefan Hajnoczi <stefanha@redhat.com> Signed-off-by: NMaria Kustova <maria.k@catit.be> Signed-off-by: NStefan Hajnoczi <stefanha@redhat.com>
Showing
tests/image-fuzzer/qcow2/fuzz.py
0 → 100644
想要评论请 注册 或 登录