aboutsummaryrefslogtreecommitdiffstats
path: root/prog/size_test.go
diff options
context:
space:
mode:
authorAndrey Konovalov <andreyknvl@google.com>2017-01-18 19:38:41 +0100
committerAndrey Konovalov <andreyknvl@google.com>2017-01-19 20:46:26 +0100
commit8625843eebe2785991094745197d5412be294527 (patch)
treeb24dff0365dd2a560e46b50c8ea4f7539e8d2112 /prog/size_test.go
parent828afa57275a7d0131ab3959da6ab9c6e61a9072 (diff)
prog: fix calculating parent length in struct with bitfields
Diffstat (limited to 'prog/size_test.go')
-rw-r--r--prog/size_test.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/prog/size_test.go b/prog/size_test.go
index c257eae31..d5aaaaf12 100644
--- a/prog/size_test.go
+++ b/prog/size_test.go
@@ -106,6 +106,10 @@ func TestAssignSize(t *testing.T) {
"syz_test$length16(&(0x7f0000000000)={[0x42, 0x42], 0xff, 0xff, 0xff, 0xff, 0xff})",
"syz_test$length16(&(0x7f0000000000)={[0x42, 0x42], 0x2, 0x10, 0x8, 0x4, 0x2})",
},
+ {
+ "syz_test$length17(&(0x7f0000000000)={{0x42, 0x42, 0x42, 0xff}, 0xff, 0xff})",
+ "syz_test$length17(&(0x7f0000000000)={{0x42, 0x42, 0x42, 0x8}, 0x8, 0x8})",
+ },
}
for i, test := range tests {