aboutsummaryrefslogtreecommitdiffstats
path: root/prog/encodingexec_test.go
diff options
context:
space:
mode:
authorAndrey Konovalov <andreyknvl@google.com>2017-08-01 18:30:20 +0200
committerAndrey Konovalov <andreyknvl@google.com>2017-08-01 18:38:20 +0200
commit1172db0ccf077bbfef7ddd176ced61c7140cb698 (patch)
treed488163d92a1212d94bb8f6f65be7e9b8172cb7e /prog/encodingexec_test.go
parent0b4392111b2785bac5b780848a5a88cc87bfd419 (diff)
prog: fix encoding for exec of result args
ResultArg might have const value. Also add a test.
Diffstat (limited to 'prog/encodingexec_test.go')
-rw-r--r--prog/encodingexec_test.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/prog/encodingexec_test.go b/prog/encodingexec_test.go
index b7a6b9463..2d96a47e0 100644
--- a/prog/encodingexec_test.go
+++ b/prog/encodingexec_test.go
@@ -250,6 +250,13 @@ func TestSerializeForExec(t *testing.T) {
instrEOF,
},
},
+ {
+ "syz_test$res1(0xffff)",
+ []uint64{
+ callID("syz_test$res1"), 1, argConst, 4, 0xffff, 0, 0,
+ instrEOF,
+ },
+ },
}
buf := make([]byte, ExecBufferSize)