SDL2 UI sends a NULL to sdl_grab_start if fullscreen, which crashes
Bug #1326533 reported by
Brandon Schaefer
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
QEMU |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
in ui/sdl2.c:
if (full_screen) {
}
Is sent, but no null checks are made in sdl_grab_start (its assumed to be an allocated pointer). So a crash happens if you start qemu -full-screen.
It should at lease send the first [0] of the newly allocated sdl2_console through.
Quickly looking around should look something like:
if (full_screen) {
}
Or possibly put into the loop where the sdl2_console is created
description: | updated |
To post a comment you must log in.
The NULL pointer check has been added here: git.qemu. org/?p= qemu.git; a=commitdiff; h=f2335791fd0ce b2f9e3
http://