fuzzing: Add a fuzzer that has some valid resources and uses these
When fuzzing we want to avoid and early reject because a resource doesn't exist or because the command buffer size is not correct. Therefore, this fuzzer creates a number of buffers and textures, and when working a fuzzer blob, the blob is split into commands and the sizes of the commands are adjusted according to the sizes that are expected for each command, and the resource handles are replaced by handles of the previously created resources.
The first few patches are for fixes:
Then the series contains fixes to the test infrastructure to make it possible the re-use it for fuzzing, and a few more error messages are added on the decoding side.
Merge request reports
Activity
added fuzzer label
assigned to @gerddie
added 5 commits
- b96673c8 - vrend: Check index buffer size before submitting draw operation
- 4592f211 - tests: Don't use ck_assert when creating the context
- edc7a752 - textvirgl: drop superfluous check
- 2c037088 - vrend: Add debug flag to dump command buffers
- 5b63a3e1 - WIP: fuzzer: Add fuzzer with soome initial state
Toggle commit listadded 1 commit
- 2bbb37c0 - WIP: fuzzer: Add fuzzer with soome initial state
added 1 commit
- 8b81d878 - WIP: fuzzer: Add fuzzer with some initial state
added 1 commit
- 5492c13e - vrend: Don't assert on invalid polygon fill mode
added 24 commits
-
5492c13e...c0428059 - 17 commits from branch
virgl:main
- 7f4fa1e6 - tests: Don't use ck_assert when creating the context
- db4fac1a - textvirgl: drop superfluous check
- be64bf76 - vrend: Add debug flag to dump command buffers
- c47432c2 - vrend: Don't assert on invalid polygon fill mode
- b171c586 - vrend: Add more error messages for shader decoding
- 53474898 - decode: print error if format is not correct
- f0bf6f85 - WIP: fuzzer: Add fuzzer with some initial state
Toggle commit list-
5492c13e...c0428059 - 17 commits from branch
added 15 commits
-
f0bf6f85...6387bd5b - 6 commits from branch
virgl:main
- 70e42bc8 - format: Add texture view class to the format table
- d53217c2 - vrend: Check whether a texture view can be created before blitting
- 50a94af6 - tests: Don't use ck_assert when creating the context
- 484e8d1b - textvirgl: drop superfluous check
- 06aba535 - vrend: Add debug flag to dump command buffers
- c7358659 - vrend: Don't assert on invalid polygon fill mode
- 2939486f - vrend: Add more error messages for shader decoding
- ef6f8dd1 - decode: print error if format is not correct
- 3283df46 - WIP: fuzzer: Add fuzzer with some initial state
Toggle commit list-
f0bf6f85...6387bd5b - 6 commits from branch
added 2 commits
added 13 commits
-
1662fe2a...9fbcbc04 - 2 commits from branch
virgl:main
- 55d3b1e9 - 1 earlier commit
- 516c1340 - vrend: Check whether a texture view can be created before blitting
- f772af44 - tests: Don't use ck_assert when creating the context
- e4a49cd6 - textvirgl: drop superfluous check
- ed45e263 - vrend: Add debug flag to dump command buffers
- 5fb4e786 - vrend: Add more error messages for shader decoding
- ecae7e89 - decode: print error if format is not correct
- 81cb4d82 - WIP: fuzzer: Add fuzzer with some initial state
- 6fa21a21 - Force linkink with tcmalloc
- 695bff02 - vrend: Check whether slice is in range of cube map
- 3eb8c02a - util: Add a "silent" log mode
Toggle commit list-
1662fe2a...9fbcbc04 - 2 commits from branch
added 7 commits
- 7932834f - vrend: Add debug flag to dump command buffers
- ddd507d2 - vrend: Add more error messages for shader decoding
- 379d395a - decode: print error if format is not correct
- de11ac6b - WIP: fuzzer: Add fuzzer with some initial state
- 891da9c8 - Force linkink with tcmalloc
- ad54681f - vrend: Check whether slice is in range of cube map
- d227b615 - util: Add a "silent" log mode
Toggle commit listadded 12 commits
- d227b615...2ac88bf2 - 2 earlier commits
- 6c7ac57c - vrend: Check whether a texture view can be created before blitting
- 8d894010 - tests: Don't use ck_assert when creating the context
- b42ac510 - textvirgl: drop superfluous check
- 70d6bcf5 - vrend: Add debug flag to dump command buffers
- 16338be0 - vrend: Add more error messages for shader decoding
- d6336e49 - decode: print error if format is not correct
- 043cf1e8 - WIP: fuzzer: Add fuzzer with some initial state
- cffb8332 - Force linkink with tcmalloc
- 2dd29bd1 - vrend: Check whether slice is in range of cube map
- c9285171 - util: Add a "silent" log mode
Toggle commit listadded 13 commits
-
798948b3 - 1 commit from branch
virgl:main
- 798948b3...3fbdfc87 - 2 earlier commits
- 8f410ea8 - vrend: Check whether a texture view can be created before blitting
- 9329e5f2 - tests: Don't use ck_assert when creating the context
- a609f26e - textvirgl: drop superfluous check
- 5c6cd490 - vrend: Add debug flag to dump command buffers
- ae6de587 - vrend: Add more error messages for shader decoding
- 1899e034 - decode: print error if format is not correct
- e6df279d - vrend: Check whether slice is in range of cube map
- 4930cd70 - vrend: Check whether number of slices to blit makes sense
- 8eec9b13 - WIP: fuzzer: Add fuzzer with some initial state
- eb5955ee - HACK: build: force linking with tcmalloc
Toggle commit list-
798948b3 - 1 commit from branch