summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorPengpeng Hou <pengpeng@iscas.ac.cn>2026-03-30 14:29:21 +0800
committerJohannes Berg <johannes.berg@intel.com>2026-09-24 16:00:07 +0200
commit2f897199494f8532245e3066af07d8e0fd75efc4 (patch)
treec53a906648fc4e328597386eecdf3563f8d1e1d3 /tools/perf/scripts/python
parent93f51579e7df248780214094418f205253383cc5 (diff)
um: account for the separator in add_arg() bounds checking
add_arg() checks whether command_line and arg fit in the fixed COMMAND_LINE_SIZE buffer, but when command_line is non-empty it inserts an additional space before appending arg. The current guard does not account for that separator, so a non-empty command line can pass the check and still overflow by one byte. Count the separator when command_line already contains data. Signed-off-by: Pengpeng Hou <pengpeng@iscas.ac.cn> Link: https://patch.msgid.link/20260330062921.40824-1-pengpeng@iscas.ac.cn Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions