diff options
| author | 2022-02-08 15:02:15 +0300 | |
|---|---|---|
| committer | 2022-02-28 13:06:23 +0100 | |
| commit | f5d8a5fe77ce933f53eb8f2e22bb7a1a2019ea11 (patch) | |
| tree | b181f678859b9d19372e69c3673993c0e434974c /tools/perf/scripts/python/export-to-sqlite.py | |
| parent | mmc: sunxi-mmc: Add D1 MMC variant (diff) | |
| download | linux-dev-f5d8a5fe77ce933f53eb8f2e22bb7a1a2019ea11.tar.xz linux-dev-f5d8a5fe77ce933f53eb8f2e22bb7a1a2019ea11.zip | |
mmc: core: use sysfs_emit() instead of sprintf()
sprintf() (still used in the MMC core for the sysfs output) is vulnerable
to the buffer overflow. Use the new-fangled sysfs_emit() instead.
Found by Linux Verification Center (linuxtesting.org) with the SVACE static
analysis tool.
Signed-off-by: Sergey Shtylyov <s.shtylyov@omp.ru>
Cc: stable@vger.kernel.org
Link: https://lore.kernel.org/r/717729b2-d65b-c72e-9fac-471d28d00b5a@omp.ru
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions
