diff options
author | Beau Belgrave <beaub@linux.microsoft.com> | 2022-01-18 12:43:20 -0800 |
---|---|---|
committer | Steven Rostedt (Google) <rostedt@goodmis.org> | 2022-02-10 22:37:38 -0500 |
commit | 2467cda1b5c97a58776a8aebfa5d76543e47479d (patch) | |
tree | 99e2136f6c838905c3e5e3569850a2a2c694a4e1 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 0279400ad38d858ed68f5d787385f6122d4170b2 (diff) |
user_events: Validate user payloads for size and null termination
Add validation to ensure data is at or greater than the min size for the
fields of the event. If a dynamic array is used and is a type of char,
ensure null termination of the array exists.
Link: https://lkml.kernel.org/r/20220118204326.2169-7-beaub@linux.microsoft.com
Acked-by: Masami Hiramatsu <mhiramat@kernel.org>
Signed-off-by: Beau Belgrave <beaub@linux.microsoft.com>
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions