SHA256
1
0
forked from pool/plymouth
plymouth/plymouth-crash-avoid-on-keyboard-remove-input-handler.patch
Cliff Zhao 9ea03a52a8 Accepting request 977781 from home:qzhao:branches:Base:System
Add plymouth-crash-avoid-on-keyboard-remove-input-handler.patch Confirm keyboard handler list not NULL before release memory to avoid crash(bsc#1193736).

OBS-URL: https://build.opensuse.org/request/show/977781
OBS-URL: https://build.opensuse.org/package/show/Base:System/plymouth?expand=0&rev=325
2022-05-17 15:37:30 +00:00

21 lines
907 B
Diff

diff -Nura plymouth-0.9.5~git20220412.e960111/src/libply-splash-core/ply-keyboard.c plymouth-0.9.5~git20220412.e960111_new/src/libply-splash-core/ply-keyboard.c
--- plymouth-0.9.5~git20220412.e960111/src/libply-splash-core/ply-keyboard.c 2022-04-15 16:39:24.000000000 +0800
+++ plymouth-0.9.5~git20220412.e960111_new/src/libply-splash-core/ply-keyboard.c 2022-05-15 23:31:14.329149370 +0800
@@ -522,6 +522,8 @@
assert (keyboard != NULL);
+ if (ply_list_get_length(keyboard->keyboard_input_handler_list))
+ {
for (node = ply_list_get_first_node (keyboard->keyboard_input_handler_list);
node; node = ply_list_get_next_node (keyboard->keyboard_input_handler_list, node)) {
ply_keyboard_closure_t *closure = ply_list_node_get_data (node);
@@ -531,6 +533,7 @@
return;
}
}
+ }
}
void