summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/parallel-perf.py
diff options
context:
space:
mode:
authorJiale Yao <yaojiale02@163.com>2026-09-26 20:12:48 +0800
committerIlpo Järvinen <ilpo.jarvinen@linux.intel.com>2026-10-13 12:05:32 +0300
commit1fe88b1741ff655bb59e4fd78178fe2c557b9185 (patch)
treef2f2be9672dbe7d859cc76ccf55e02d0d140ea88 /tools/perf/scripts/python/parallel-perf.py
parentae53bb89b9703e2a691651368411988782e9b1a7 (diff)
platform/olpc: Reserve space for a string terminator
ec_dbgfs_cmd_write() copies user input into a zero-initialized stack buffer and passes it to sscanf(). A write that overwrites the entire buffer leaves no terminator, so the subsequent parsing can read beyond the buffer. Limit the copy to leave room for the trailing NUL. Fixes: 6cca83d498bd ("Platform: OLPC: move debugfs support from x86 EC driver") Signed-off-by: Jiale Yao <yaojiale02@163.com> Link: https://patch.msgid.link/20260926121250.3258285-2-yaojiale02@163.com Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com> Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Diffstat (limited to 'tools/perf/scripts/python/parallel-perf.py')
0 files changed, 0 insertions, 0 deletions