aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CHANGELOG.md2
-rw-r--r--input.c3
2 files changed, 2 insertions, 3 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index ac3422d5..e6fbae78 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -90,9 +90,11 @@
application exit simultaneously in a short window ([#2432][2432]).
* Crash when a buggy compositor sends an `ime_enter()` event with a
`NULL` surface ([#2467][2467]).
+* Possible memory leak when processing keymap data ([#2482][2482]).
[2342]: https://codeberg.org/dnkl/foot/pulls/2432
[2342]: https://codeberg.org/dnkl/foot/issues/2467
+[2482]: https://codeberg.org/dnkl/foot/pulls/2482
### Security
diff --git a/input.c b/input.c
index 643a18d7..ed85dbb8 100644
--- a/input.c
+++ b/input.c
@@ -600,9 +600,6 @@ keyboard_keymap(void *data, struct wl_keyboard *wl_keyboard,
goto err;
}
- while (map_str[size - 1] == '\0')
- size--;
-
if (seat->kbd.xkb != NULL) {
seat->kbd.xkb_keymap = xkb_keymap_new_from_buffer(
seat->kbd.xkb, map_str, size, XKB_KEYMAP_FORMAT_TEXT_V1,