diff options
| author | Thorsten Blum <thorsten.blum@linux.dev> | 2025-04-02 13:57:54 +0200 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2025-04-15 16:26:46 +0200 |
| commit | c511db3f1de6be1690ccbc53e0bb786073eda74a (patch) | |
| tree | 95c74cae4bfe4fa77270eda1e8f4b70f910ff9b3 /tools/perf/scripts/python/flamegraph.py | |
| parent | d486f2e07836fd8435c2ec0512b5d81cfc00781c (diff) | |
| download | linux-c511db3f1de6be1690ccbc53e0bb786073eda74a.tar.gz linux-c511db3f1de6be1690ccbc53e0bb786073eda74a.zip | |
staging: greybus: Check for string truncation instead of NUL-termination
Commit 18f44de63f88 ("staging: greybus: change strncpy() to
strscpy_pad()") didn't remove the now unnecessary NUL-termination
checks. Unlike strncpy(), strscpy_pad() guarantees that the destination
buffer is NUL-terminated, making these checks obsolete. Remove them and
check for string truncation instead.
Compile-tested only.
Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
Link: https://lore.kernel.org/r/20250402115755.1929043-1-thorsten.blum@linux.dev
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/flamegraph.py')
0 files changed, 0 insertions, 0 deletions
