[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-commits] [qemu/qemu] 08d49d: sdl2: fix crash in handle_windowevent
From: |
GitHub |
Subject: |
[Qemu-commits] [qemu/qemu] 08d49d: sdl2: fix crash in handle_windowevent() when resto... |
Date: |
Thu, 11 Jun 2015 08:00:06 -0700 |
Branch: refs/heads/master
Home: https://github.com/qemu/qemu
Commit: 08d49df0dbaacc220a099dbfb644e1dc0eda57be
https://github.com/qemu/qemu/commit/08d49df0dbaacc220a099dbfb644e1dc0eda57be
Author: Alberto Garcia <address@hidden>
Date: 2015-06-09 (Tue, 09 Jun 2015)
Changed paths:
M ui/sdl2.c
Log Message:
-----------
sdl2: fix crash in handle_windowevent() when restoring the screen size
The Ctrl-Alt-u keyboard shortcut restores the screen to its original
size. In the SDL2 UI this is done by destroying the window and
creating a new one. The old window emits SDL_WINDOWEVENT_HIDDEN when
it's destroyed, but trying to call SDL_GetWindowFromID() from that
event's window ID returns a null pointer. handle_windowevent() assumes
that the pointer is never null so it results in a crash.
Cc: address@hidden
Signed-off-by: Alberto Garcia <address@hidden>
Signed-off-by: Gerd Hoffmann <address@hidden>
Commit: afa25c4bb5bd0732dca4aa0691fd4682d242925f
https://github.com/qemu/qemu/commit/afa25c4bb5bd0732dca4aa0691fd4682d242925f
Author: Peter Maydell <address@hidden>
Date: 2015-06-11 (Thu, 11 Jun 2015)
Changed paths:
M ui/sdl2.c
Log Message:
-----------
Merge remote-tracking branch 'remotes/kraxel/tags/pull-sdl-20150611-1' into
staging
sdl2: fix crash in handle_windowevent() when restoring the screen size
# gpg: Signature made Thu Jun 11 08:57:38 2015 BST using RSA key ID D3E87138
# gpg: Good signature from "Gerd Hoffmann (work) <address@hidden>"
# gpg: aka "Gerd Hoffmann <address@hidden>"
# gpg: aka "Gerd Hoffmann (private) <address@hidden>"
* remotes/kraxel/tags/pull-sdl-20150611-1:
sdl2: fix crash in handle_windowevent() when restoring the screen size
Signed-off-by: Peter Maydell <address@hidden>
Compare: https://github.com/qemu/qemu/compare/0b70743d4f4f...afa25c4bb5bd
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Qemu-commits] [qemu/qemu] 08d49d: sdl2: fix crash in handle_windowevent() when resto...,
GitHub <=