diff options
| author | Kees Cook <[email protected]> | 2023-07-20 15:15:06 +0000 |
|---|---|---|
| committer | Kees Cook <[email protected]> | 2023-07-26 21:55:35 +0000 |
| commit | a8f014ec6a214c94ed6a9ff5ba8904a5cadd42a6 (patch) | |
| tree | 2246dacab3509ea7091f39027178536d77ab6513 /tools/perf/util/c++/clang.cpp | |
| parent | sparc: mark __arch_xchg() as __always_inline (diff) | |
| download | kernel-a8f014ec6a214c94ed6a9ff5ba8904a5cadd42a6.tar.gz kernel-a8f014ec6a214c94ed6a9ff5ba8904a5cadd42a6.zip | |
vboxsf: Use flexible arrays for trailing string member
The declaration of struct shfl_string used trailing fake flexible arrays
for the string member. This was tripping FORTIFY_SOURCE since commit
df8fc4e934c1 ("kbuild: Enable -fstrict-flex-arrays=3"). Replace the
utf8 and utf16 members with actual flexible arrays, drop the unused ucs2
member, and retriain a 2 byte padding to keep the structure size the same.
Reported-by: Larry Finger <[email protected]>
Closes: https://lore.kernel.org/lkml/[email protected]/
Tested-by: Larry Finger <[email protected]>
Reviewed-by: Hans de Goede <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Kees Cook <[email protected]>
Diffstat (limited to 'tools/perf/util/c++/clang.cpp')
0 files changed, 0 insertions, 0 deletions
