diff options
| author | Andrey Konovalov <andreyknvl@google.com> | 2017-01-19 14:42:29 +0100 |
|---|---|---|
| committer | Andrey Konovalov <andreyknvl@google.com> | 2017-01-19 15:22:04 +0100 |
| commit | 872e436375622ce0969d5d2d2197aaeaa7272276 (patch) | |
| tree | 808667e2d5d0a86cf260762d3f1b417ccd889c41 /prog/encodingexec_test.go | |
| parent | 787f45346ad162ef2c55c7f6ebed39d091f940b2 (diff) | |
prog, sys: fix padding varlen structs
Diffstat (limited to 'prog/encodingexec_test.go')
| -rw-r--r-- | prog/encodingexec_test.go | 9 |
1 files changed, 9 insertions, 0 deletions
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 @@ -134,6 +134,15 @@ func TestSerializeForExec(t *testing.T) { }, }, { + "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{ instrCopyin, dataOffset + 0, argConst, 8, 1, 0, 0, |
