aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin/stackcollapse-report
diff options
context:
space:
mode:
authorLen Baker <[email protected]>2021-08-15 19:42:04 +0200
committerJonathan Cameron <[email protected]>2021-09-14 12:00:30 +0100
commitd722f1e06fbc53eb369b39646945c1fa92068e74 (patch)
treee309f6ab7ac4f43165952a083e9c4b8adfac1f1b /tools/perf/scripts/python/bin/stackcollapse-report
parent12ed27863ea3148239ec368e16c1a0f937e4d9bd (diff)
drivers/iio: Remove all strcpy() uses
strcpy() performs no bounds checking on the destination buffer. This could result in linear overflows beyond the end of the buffer, leading to all kinds of misbehaviors. So, remove all the uses and add devm_kstrdup() or devm_kasprintf() instead. Also, modify the "for" loop conditions to clarify the access to the st->orientation.rotation buffer. This patch is an effort to clean up the proliferation of str*() functions in the kernel and a previous step in the path to remove the strcpy function from the kernel entirely [1]. [1] https://github.com/KSPP/linux/issues/88 Signed-off-by: Len Baker <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jonathan Cameron <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-report')
0 files changed, 0 insertions, 0 deletions