Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.bugs.dist > #1270501
| From | alexmaurer@madis.ch |
|---|---|
| Newsgroups | linux.debian.bugs.dist |
| Subject | Bug#1120682: Patch |
| Date | 2025-11-17 14:20 +0100 |
| Message-ID | <LS7jc-dDNX-21@gated-at.bofh.it> (permalink) |
| References | <LR3B0-cVZq-11@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
[Multipart message — attachments visible in raw view] - view raw
I locally tested the following patch (fix-null-input-device.patch)
with success :
--- a/src/libply-splash-core/ply-input-device.c
+++ b/src/libply-splash-core/ply-input-device.c
@@ -499,6 +499,9 @@ ply_input_device_get_capslock_state
(ply_input_device_t *input_device)
const char *
ply_input_device_get_keymap (ply_input_device_t *input_device)
{
+ if (input_device == NULL)
+ return NULL;
+
xkb_layout_index_t num_indices =
xkb_keymap_num_layouts (input_device->keymap);
ply_trace ("xkb layout has %d groups", num_indices);
if (num_indices == 0) {
__
Back to linux.debian.bugs.dist | Previous | Next — Previous in thread | Find similar
Bug#1120682: plymouth: crash on ply_input_device_get_keymap when no keyboard connected Alexandre Maurer <alexmaurer@madis.ch> - 2025-11-14 16:10 +0100 Bug#1120682: ply_input_device_get_keymap(NULL) crash alexmaurer@madis.ch - 2025-11-15 11:00 +0100 Bug#1120682: Patch alexmaurer@madis.ch - 2025-11-17 14:20 +0100
csiph-web