aboutsummaryrefslogtreecommitdiffstats
path: root/prog/test_util.go
Commit message (Collapse)AuthorAgeFilesLines
* tools/syz-linter: check t.Logf/Errorf/Fatalf messagesDmitry Vyukov2024-04-171-4/+4
| | | | | Fix checking of Logf, it has string in 0-th arg. Add checking of t.Errorf/Fatalf.
* prog: don't require preallocated buffer for exec encodingDmitry Vyukov2024-04-161-2/+1
| | | | | | If we send exec encoding to the fuzzer, it's not necessary to serialize exec encoding into existing buffer (currnetly we serialize directly into shmem). So simplify code by serializing into a new slice.
* executor: move syz_mount_image's sanity checks to syz-fuzzerAleksandr Nogikh2022-09-271-2/+7
| | | | | It will simplify the C code and let us extract the raw images in a more convenient way.
* prog: fix size assignment for squashed argsDmitry Vyukov2020-05-011-2/+2
| | | | | | | | We can have a situation where len target points into a squashed argument. In suca case we don't have the target argument. In such case we simply leave size argument as is. It can't happen during generation, only during mutation and mutation can set size to random values, so it should be fine. This is a lateny bug, we just never had such case before.
* prog: improve TestDeserializeHelperDmitry Vyukov2020-03-241-3/+9
| | | | | 1. Allow to not provide Out if it's the same as In. 2. Always check Out.
* prog: export deserialization test helper for sys/{linux,openbsd}Dmitry Vyukov2020-03-171-0/+72
sys/{linux,openbsd} duplicate deserialization test logic as well. Export and reuse the existing helper function.