summaryrefslogtreecommitdiff
path: root/samples/livepatch/livepatch-sample.c
diff options
context:
space:
mode:
authorPengpeng Hou <pengpeng@iscas.ac.cn>2026-04-23 23:35:00 +0800
committerJohannes Berg <johannes.berg@intel.com>2026-09-24 16:21:29 +0200
commit9756ecdbffe61797fe1c81bc62ca48eaa27d4055 (patch)
tree571ea8624e5e16fc2d794aebb093b45e4ec81bdf /samples/livepatch/livepatch-sample.c
parent28ada50b743e956731280b817572335f33890a0f (diff)
um: vector: reject too many interface arguments
uml_parse_vector_ifspec() stores parsed key/value pairs in the fixed struct arglist token and value arrays, which are both sized to MAXVARGS. The parser increments numargs as it discovers pairs, but it never checks whether another slot is still available before writing into the arrays. Reject interface specifications that exceed MAXVARGS instead of writing past the end of the fixed argument arrays. Signed-off-by: Pengpeng Hou <pengpeng@iscas.ac.cn> Link: https://patch.msgid.link/20260424070106.1-uml-vector-v2-pengpeng@iscas.ac.cn Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'samples/livepatch/livepatch-sample.c')
0 files changed, 0 insertions, 0 deletions