summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/task-analyzer.py
diff options
context:
space:
mode:
authorDavid Disseldorp <ddiss@suse.de>2025-03-04 16:57:47 +1100
committerChristian Brauner <brauner@kernel.org>2025-03-08 12:13:26 +0100
commita8a3bc2e3277858a7457da15225b08ca65a99b0b (patch)
treed2296ff1952ba45f21ea7c83ec9b8a09beaf72a5 /tools/perf/scripts/python/task-analyzer.py
parentfcc155008a20fa31b01569e105250490750f0687 (diff)
initramfs: avoid memcpy for hex header fields
newc/crc cpio headers contain a bunch of 8-character hexadecimal fields which we convert via simple_strtoul(), following memcpy() into a zero-terminated stack buffer. The new simple_strntoul() helper allows us to pass in max_chars=8 to avoid zero-termination and memcpy(). Signed-off-by: David Disseldorp <ddiss@suse.de> Link: https://lore.kernel.org/r/20250304061020.9815-5-ddiss@suse.de Signed-off-by: Christian Brauner <brauner@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/task-analyzer.py')
0 files changed, 0 insertions, 0 deletions