diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2016-11-24 20:20:05 +0100 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2016-11-24 20:20:05 +0100 |
| commit | 4de5c7eb202af06a9b0f4d746ec2d4f474668a57 (patch) | |
| tree | 04b7bf77f7474d69c645972815aa6b905114997b /sys | |
| parent | 3356f68f1a531e194f6fbca5eb02f4f5bc4c218f (diff) | |
prog: fix pointer direction validation
Currently the added test description leads to crashes:
--- FAIL: TestMinimizeRandom (0.12s)
prog_test.go:20: seed=1480014002950172453
panic: syscall syz_test$regression0: pointer arg 'f0' has output direction [recovered]
panic: syscall syz_test$regression0: pointer arg 'f0' has output direction
The description is OK. Fix that.
Diffstat (limited to 'sys')
| -rw-r--r-- | sys/test.txt | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/sys/test.txt b/sys/test.txt index a4381c1ad..e6865b467 100644 --- a/sys/test.txt +++ b/sys/test.txt @@ -187,3 +187,11 @@ syz_end_var_struct { f1 const[0x42, int32be] f2 flags[syz_end_flags, int64be] } [packed] + +# Regression tests. + +syz_test$regression0(a0 ptr[inout, syz_regression0_struct]) + +syz_regression0_struct { + f0 buffer[out] +} |
