Merge pull request #27815 from Faless/unix/mem_access

Fix jump over uninitialized value in OS Unix/X11
This commit is contained in:
Hein-Pieter van Braam 2019-04-10 11:06:37 +02:00 committed by GitHub
commit f75b9e6246
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 0 deletions

View file

@ -108,6 +108,7 @@ void OS_Unix::initialize_debugging() {
if (ScriptDebugger::get_singleton() != NULL) {
struct sigaction action;
memset(&action, 0, sizeof(action));
action.sa_handler = handle_interrupt;
sigaction(SIGINT, &action, NULL);
}

View file

@ -3238,6 +3238,8 @@ OS_X11::OS_X11() {
AudioDriverManager::add_driver(&driver_alsa);
#endif
xi.opcode = 0;
xi.last_relative_time = 0;
layered_window = false;
minimized = false;
xim_style = 0L;