History

Merge tag 'drm-fixes-2020-03-06-1' of git://anongit.freedesktop.org/drm/drm

Pull vgacon fix from Daniel Vetter: "One vgacon input check for stable" * tag 'drm-fixes-2020-03-06-1' of git://anongit.freedesktop.org/drm/drm: vgacon: Fix a UAF in vgacon_invert_region

Linus Torvalds committed 6 years ago

Commit 2f501bb2 parents 30fe0d0 513dc791 file · +3 −0Browse files

Unified · Split

drivers/video/console/vgacon.c+3−0
@@ -1316,6 +1316,9 @@ static int vgacon_font_get(struct vc_data *c, struct console_font *font) · 1315 unmodified lines
1316static int vgacon_resize(struct vc_data *c, unsigned int width,1316static int vgacon_resize(struct vc_data *c, unsigned int width,
1317 unsigned int height, unsigned int user)1317 unsigned int height, unsigned int user)
1318{1318{
1319 if ((width << 1) * height > vga_vram_size)
1320 return -EINVAL;
1321
1319 if (width % 2 || width > screen_info.orig_video_cols ||1322 if (width % 2 || width > screen_info.orig_video_cols ||
1320 height > (screen_info.orig_video_lines * vga_default_font_height)/1323 height > (screen_info.orig_video_lines * vga_default_font_height)/
1321 c->vc_font.height)1324 c->vc_font.height)

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t