From 872e436375622ce0969d5d2d2197aaeaa7272276 Mon Sep 17 00:00:00 2001 From: Andrey Konovalov Date: Thu, 19 Jan 2017 14:42:29 +0100 Subject: prog, sys: fix padding varlen structs --- prog/encodingexec_test.go | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'prog/encodingexec_test.go') diff --git a/prog/encodingexec_test.go b/prog/encodingexec_test.go index 5ff80b698..f2476351c 100644 --- a/prog/encodingexec_test.go +++ b/prog/encodingexec_test.go @@ -133,6 +133,15 @@ func TestSerializeForExec(t *testing.T) { instrEOF, }, }, + { + "syz_test$align6(&(0x7f0000000000)={0x42, [0x43]})", + []uint64{ + instrCopyin, dataOffset + 0, argConst, 1, 0x42, 0, 0, + instrCopyin, dataOffset + 4, argConst, 4, 0x43, 0, 0, + callID("syz_test$align6"), 1, argConst, ptrSize, dataOffset, 0, 0, + instrEOF, + }, + }, { "syz_test$union0(&(0x7f0000000000)={0x1, @f2=0x2})", []uint64{ -- cgit mrf-deployment