aboutsummaryrefslogtreecommitdiff
path: root/lib/test_fortify/write_overflow-strlcpy-src.c
diff options
context:
space:
mode:
authorLv Ruyi <[email protected]>2022-04-01 07:55:37 +0000
committerSudeep Holla <[email protected]>2022-04-04 23:06:37 +0100
commitf1ad601d1f4a8f5dac69706d641f3a88beccc488 (patch)
treeafc2b1a53d096caf393275b171371d2a5279537e /lib/test_fortify/write_overflow-strlcpy-src.c
parent23274739a5b6166f74d8d9cb5243d7bf6b46aab9 (diff)
firmware: arm_scmi: Replace zero-length array with flexible-array member
There is a regular need in the kernel to provide a way to declare having a dynamically sized set of trailing elements in a structure. Kernel code should always use “flexible array members”[1] for these cases. The older style of one-element or zero-length arrays should no longer be used[2]. [1] https://en.wikipedia.org/wiki/Flexible_array_member [2] https://www.kernel.org/doc/html/v5.16/process/deprecated.html#zero-length-and-one-element-arrays Link: https://lore.kernel.org/r/[email protected] Reported-by: Zeal Robot <[email protected]> Signed-off-by: Lv Ruyi <[email protected]> Signed-off-by: Sudeep Holla <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-strlcpy-src.c')
0 files changed, 0 insertions, 0 deletions