diff options
| author | Jocelyn Falempe <jfalempe@redhat.com> | 2025-10-09 14:24:52 +0200 |
|---|---|---|
| committer | Jocelyn Falempe <jfalempe@redhat.com> | 2025-10-21 11:28:03 +0200 |
| commit | 2e337dd278c6c38982b520c309f36e0f88696e6e (patch) | |
| tree | 42e5a7fb6cab3d8bea2cd035528da6f8c5158564 /tools/docs/parse-headers.py | |
| parent | e9b36fe0630046e61224216dc92513a69f72b5f0 (diff) | |
drm/panic: Fix divide by 0 if the screen width < font width
In the unlikely case that the screen is tiny, and smaller than the
font width, it leads to a divide by 0:
draw_line_with_wrap()
chars_per_row = sb->width / font->width = 0
line_wrap.len = line->len % chars_per_row;
This will trigger a divide by 0
Reviewed-by: Javier Martinez Canillas <javierm@redhat.com>
Link: https://lore.kernel.org/r/20251009122955.562888-6-jfalempe@redhat.com
Signed-off-by: Jocelyn Falempe <jfalempe@redhat.com>
Diffstat (limited to 'tools/docs/parse-headers.py')
0 files changed, 0 insertions, 0 deletions
