aboutsummaryrefslogtreecommitdiffstats
path: root/syz-verifier
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2022-01-04 16:59:51 +0100
committerDmitry Vyukov <dvyukov@google.com>2022-01-11 16:30:08 +0100
commit3f590eebf929ad4443e80dc9fae1f86500b1857c (patch)
tree3f840d0926dae7d4e22c1d2409a9d4a3b48d2ecf /syz-verifier
parent4180aae2ad95a5f5c3bb20660f87f80c7d8c595b (diff)
prog: refactor generation of resources
Currnetly we loop up to 1000 times in randGen.createResource, this is necessary because we can't guarantee that the generated syscall will indeed contain the necessary resources. This is ugly. Now that we have stricter constructors (no unions) with few additional tweaks we can guarantee that we generate the resource every time. Generate at least 1 array element when in createResource. Don't generate special empty pointers when in createResource. Record only resource constructors in Syscall.outputResource, this makes rotation logic to include at least 1 of them.
Diffstat (limited to 'syz-verifier')
0 files changed, 0 insertions, 0 deletions