From 8625843eebe2785991094745197d5412be294527 Mon Sep 17 00:00:00 2001 From: Andrey Konovalov Date: Wed, 18 Jan 2017 19:38:41 +0100 Subject: prog: fix calculating parent length in struct with bitfields --- prog/size_test.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'prog/size_test.go') 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 { -- cgit mrf-deployment