diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2018-03-02 16:14:57 +0100 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2018-03-05 12:10:27 +0100 |
| commit | 002cecf2022de3ab01c87f905477aa3b063d73fc (patch) | |
| tree | 674ee06d247de287e04017600f7fc52dc7ba58ec /prog/size_test.go | |
| parent | 5ef8dbdf5a63ccf7e069527dbb2493dc2ef0c319 (diff) | |
pkg/compiler: allow specifying static size for filename's
Sometimes filenames are embed into structs and need to take fixed space.
Diffstat (limited to 'prog/size_test.go')
| -rw-r--r-- | prog/size_test.go | 4 |
1 files changed, 4 insertions, 0 deletions
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 { |
