From 4bba9fd1629d5351877b21fc662a125342a18a9e Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Fri, 20 Dec 2019 14:03:58 +0100 Subject: pkg/compiler: fix alignment of string-formatted values We used size as alignment, this is very wrong. Found thanks to syz-check. Update #590 --- pkg/compiler/testdata/all.txt | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'pkg/compiler/testdata') diff --git a/pkg/compiler/testdata/all.txt b/pkg/compiler/testdata/all.txt index 380d65319..9d94a81a1 100644 --- a/pkg/compiler/testdata/all.txt +++ b/pkg/compiler/testdata/all.txt @@ -265,7 +265,12 @@ s3 { f1 int8 } [size[100]] -foo$s0(a ptr[in, s0], b ptr[in, s1], c ptr[in, s2]) +s4 { + f1 fmt[hex, int32] + f2 int8 +} [size[19]] + +foo$s0(a ptr[in, s0], b ptr[in, s1], c ptr[in, s2], d ptr[in, s4]) # Unions. -- cgit mrf-deployment