diff options
| author | Hans de Goede <[email protected]> | 2019-11-18 16:51:22 +0100 |
|---|---|---|
| committer | Hans de Goede <[email protected]> | 2019-12-16 12:13:17 +0100 |
| commit | 8582e244e5fe72d2e9ace186fa8f3ed3bb4122e1 (patch) | |
| tree | d4320f21786b04080144a502d8c7826f5062cc25 /tools/perf/scripts/python/futex-contention.py | |
| parent | 49a37dc393d774b7f7b8ba3944b75c7f8673b43a (diff) | |
drm/modes: parse_cmdline: Fix possible reference past end of string
Before this commit, if the last option of a video=... option is for
example "rotate" without a "=<value>" after it then delim will point to
the terminating 0 of the string, and value which is sets to <delim + 1>
will point one position past the end of the string.
This commit fixes this by enforcing that the contents of delim equals '='
as it should be for options which take a value, this check is done in a
new drm_mode_parse_cmdline_int helper function which factors out the
common integer parsing code for all the options which take an int.
Acked-by: Maxime Ripard <[email protected]>
Signed-off-by: Hans de Goede <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/futex-contention.py')
0 files changed, 0 insertions, 0 deletions