diff options
author | Feng Jiang <jiangfeng@kylinos.cn> | 2025-04-09 09:46:33 +0800 |
---|---|---|
committer | Rodrigo Vivi <rodrigo.vivi@intel.com> | 2025-05-02 09:34:22 -0400 |
commit | b662b162c3d06f120749eea0351ec9317d9dd905 (patch) | |
tree | 50a54106920e415e4e29a851a4a35cd9e9b84721 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 75680b7cd461b169c7ccd2a0fba7542868b7fce2 (diff) |
drm: Fix potential overflow issue in event_string array
When calling scnprintf() to append recovery method to event_string,
the second argument should be `sizeof(event_string) - len`, otherwise
there is a potential overflow problem.
Fixes: b7cf9f4ac1b8 ("drm: Introduce device wedged event")
Signed-off-by: Feng Jiang <jiangfeng@kylinos.cn>
Reviewed-by: André Almeida <andrealmeid@igalia.com>
Reviewed-by: Raag Jadav <raag.jadav@intel.com>
Link: https://lore.kernel.org/r/20250409014633.31303-1-jiangfeng@kylinos.cn
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions