diff options
| author | Arnd Bergmann <[email protected]> | 2024-03-13 16:36:56 +0000 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2024-03-25 18:09:52 +0000 |
| commit | ef25725b7f8aaffd7756974d3246ec44fae0a5cf (patch) | |
| tree | 0934cf351945ea2c0dd9d1068b0e1aa817bd4f2a /tools/perf/scripts/python/arm-cs-trace-disasm.py | |
| parent | Linux 6.9-rc1 (diff) | |
| download | kernel-ef25725b7f8aaffd7756974d3246ec44fae0a5cf.tar.gz kernel-ef25725b7f8aaffd7756974d3246ec44fae0a5cf.zip | |
staging: vc04_services: changen strncpy() to strscpy_pad()
gcc-14 warns about this strncpy() that results in a non-terminated
string for an overflow:
In file included from include/linux/string.h:369,
from drivers/staging/vc04_services/vchiq-mmal/mmal-vchiq.c:20:
In function 'strncpy',
inlined from 'create_component' at drivers/staging/vc04_services/vchiq-mmal/mmal-vchiq.c:940:2:
include/linux/fortify-string.h:108:33: error: '__builtin_strncpy' specified bound 128 equals destination size [-Werror=stringop-truncation]
Change it to strscpy_pad(), which produces a properly terminated and
zero-padded string.
Signed-off-by: Arnd Bergmann <[email protected]>
Reviewed-by: Dan Carpenter <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/arm-cs-trace-disasm.py')
0 files changed, 0 insertions, 0 deletions
