[PATCH v3] drm: Fix potential overflow issue in event_string array
André Almeida
andrealmeid at igalia.com
Wed Apr 9 04:03:57 UTC 2025
Em 08/04/2025 22:46, jiangfeng at kylinos.cn escreveu:
> From: Feng Jiang <jiangfeng at kylinos.cn>
>
> 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 at kylinos.cn>
Reviewed-by: André Almeida <andrealmeid at igalia.com>
More information about the dri-devel
mailing list