aboutsummaryrefslogtreecommitdiffstats
path: root/prog/size_test.go
diff options
context:
space:
mode:
authorAndrey Konovalov <andreyknvl@google.com>2017-01-19 20:23:57 +0100
committerAndrey Konovalov <andreyknvl@google.com>2017-01-19 20:46:26 +0100
commit243c4bf89cf66d2cda30d27850eb48bb82eb0863 (patch)
treefc56f09dd143dc1e1a76315dac0f5f944abfdbb1 /prog/size_test.go
parent8625843eebe2785991094745197d5412be294527 (diff)
prog: fix bytesizeN for nonarray fields
Diffstat (limited to 'prog/size_test.go')
-rw-r--r--prog/size_test.go12
1 files changed, 10 insertions, 2 deletions
diff --git a/prog/size_test.go b/prog/size_test.go
index d5aaaaf12..0b7e5fb98 100644
--- a/prog/size_test.go
+++ b/prog/size_test.go
@@ -107,8 +107,16 @@ func TestAssignSize(t *testing.T) {
"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})",
+ "syz_test$length17(&(0x7f0000000000)={0x42, 0xff, 0xff, 0xff, 0xff})",
+ "syz_test$length17(&(0x7f0000000000)={0x42, 0x8, 0x4, 0x2, 0x1})",
+ },
+ {
+ "syz_test$length18(&(0x7f0000000000)={0x42, 0xff, 0xff, 0xff, 0xff})",
+ "syz_test$length18(&(0x7f0000000000)={0x42, 0x8, 0x4, 0x2, 0x1})",
+ },
+ {
+ "syz_test$length19(&(0x7f0000000000)={{0x42, 0x42, 0x42, 0x42, 0x42, 0x42, 0x42, 0xff}, 0xff, 0xff, 0xff})",
+ "syz_test$length19(&(0x7f0000000000)={{0x42, 0x42, 0x42, 0x42, 0x42, 0x42, 0x42, 0x14}, 0x14, 0x14, 0x5})",
},
}