diff options
author | Andre Przywara <andre.przywara@arm.com> | 2019-03-23 01:29:55 +0000 |
---|---|---|
committer | Anatolij Gustschin <agust@denx.de> | 2019-04-14 14:18:47 +0200 |
commit | 96c9bf7e2ae2ac331574cf5017a0381d184a45a8 (patch) | |
tree | fb43f147d49ce3f8cd4a13005503cea066a663cc /drivers/video/fsl_diu_fb.c | |
parent | 57e7775413cfd4ada728c4e60df64895dfa37e4e (diff) |
video/console: Fix DM_VIDEO font glyph array indexing
When the character to be printed on a DM_VIDEO console is from the
"extended ASCII" range (0x80 - 0xff), it will be treated as a negative
number, as it's declared as a signed char. This leads to negative array
indicies into the glyph bitmap array, and random garbled characters.
Cast the character to an unsigned type to make the index always positive
and avoid an out-of-bounds access.
Signed-off-by: Andre Przywara <andre.przywara@arm.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'drivers/video/fsl_diu_fb.c')
0 files changed, 0 insertions, 0 deletions