diff options
| author | Jiale Yao <yaojiale02@163.com> | 2026-09-26 20:12:48 +0800 |
|---|---|---|
| committer | Ilpo Järvinen <ilpo.jarvinen@linux.intel.com> | 2026-10-13 12:05:32 +0300 |
| commit | 1fe88b1741ff655bb59e4fd78178fe2c557b9185 (patch) | |
| tree | f2f2be9672dbe7d859cc76ccf55e02d0d140ea88 /tools/perf/scripts/python/export-to-postgresql.py | |
| parent | ae53bb89b9703e2a691651368411988782e9b1a7 (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/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions
