Skip to content

Commit 7e13256

Browse files
committed
Merge tag 'drm-misc-next-fixes-2020-10-20' of git://anongit.freedesktop.org/drm/drm-misc into drm-next
Two patches to prevent out-of-bands accesses on fonts buffers Signed-off-by: Dave Airlie <airlied@redhat.com> From: Maxime Ripard <maxime@cerno.tech> Link: https://patchwork.freedesktop.org/patch/msgid/20201020141445.4jisqylfbusdnzge@gilmour
2 parents 40b9905 + 272d708 commit 7e13256

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

Documentation/fb/fbcon.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ C. Boot options
8181
1. fbcon=font:<name>
8282

8383
Select the initial font to use. The value 'name' can be any of the
84-
compiled-in fonts: 10x18, 6x10, 7x14, Acorn8x8, MINI4x6,
84+
compiled-in fonts: 10x18, 6x10, 6x8, 7x14, Acorn8x8, MINI4x6,
8585
PEARL8x8, ProFont6x11, SUN12x22, SUN8x16, TER16x32, VGA8x16, VGA8x8.
8686

8787
Note, not all drivers can handle font with widths not divisible by 8,

lib/fonts/font_6x8.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33

44
#define FONTDATAMAX 2048
55

6-
static const unsigned char fontdata_6x8[FONTDATAMAX] = {
7-
6+
static struct font_data fontdata_6x8 = {
7+
{ 0, 0, FONTDATAMAX, 0 }, {
88
/* 0 0x00 '^@' */
99
0x00, /* 000000 */
1010
0x00, /* 000000 */
@@ -2564,13 +2564,13 @@ static const unsigned char fontdata_6x8[FONTDATAMAX] = {
25642564
0x00, /* 000000 */
25652565
0x00, /* 000000 */
25662566
0x00, /* 000000 */
2567-
};
2567+
} };
25682568

25692569
const struct font_desc font_6x8 = {
25702570
.idx = FONT6x8_IDX,
25712571
.name = "6x8",
25722572
.width = 6,
25732573
.height = 8,
2574-
.data = fontdata_6x8,
2574+
.data = fontdata_6x8.data,
25752575
.pref = 0,
25762576
};

0 commit comments

Comments
 (0)