From 002cecf2022de3ab01c87f905477aa3b063d73fc Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Fri, 2 Mar 2018 16:14:57 +0100 Subject: pkg/compiler: allow specifying static size for filename's Sometimes filenames are embed into structs and need to take fixed space. --- 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 08b7cba92..8ce368d09 100644 --- a/prog/size_test.go +++ b/prog/size_test.go @@ -146,6 +146,10 @@ func TestAssignSize(t *testing.T) { "syz_test$length28(&(0x7f0000000000), 0x0)", "syz_test$length28(&(0x7f0000000000)=@f1, 0x2a)", }, + { + "syz_test$length29(&(0x7f0000000000)={'./a\\x00', './b/c\\x00', 0x0, 0x0, 0x0})", + "syz_test$length29(&(0x7f0000000000)={'./a\\x00', './b/c\\x00', 0xa, 0x14, 0x21})", + }, } for i, test := range tests { -- cgit mrf-deployment