(subset) [PATCH 5/5] fbconsole: reset cursor to origin when changing fonts
Sascha Hauer
s.hauer at pengutronix.de
Mon Jun 2 00:42:29 PDT 2025
On Sun, 01 Jun 2025 23:00:02 +0200, Ahmad Fatoum wrote:
> If we switch from one font to another, we update priv->rows and
> priv->cols, but priv->x and priv->y remain at their old values.
>
> This becomes problematic, when a bigger font is chosen, because the
> coordinates may now exceed the maximum number of rows and lines,
> triggering an out-of-bounds memory access, when they are scaled
> according to the new font.
>
> [...]
Applied, thanks!
[5/5] fbconsole: reset cursor to origin when changing fonts
https://git.pengutronix.de/cgit/barebox/commit/?id=812b498be405 (link may not be stable)
Best regards,
--
Sascha Hauer <s.hauer at pengutronix.de>
More information about the barebox
mailing list