From 4de5c7eb202af06a9b0f4d746ec2d4f474668a57 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Thu, 24 Nov 2016 20:20:05 +0100 Subject: 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. --- sys/test.txt | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'sys') 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] +} -- cgit mrf-deployment