From 1172db0ccf077bbfef7ddd176ced61c7140cb698 Mon Sep 17 00:00:00 2001 From: Andrey Konovalov Date: Tue, 1 Aug 2017 18:30:20 +0200 Subject: prog: fix encoding for exec of result args ResultArg might have const value. Also add a test. --- prog/encodingexec_test.go | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'prog/encodingexec_test.go') 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) -- cgit mrf-deployment