From 74bd1d4000d82d1cd66a639ddabfbe13573ef881 Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Wed, 12 Jul 2017 12:00:52 -0400 Subject: [PATCH] efl-wl: mmap byte for nul terminator in keymap string CID 1377545 --- src/lib/efl_wl/efl_wl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/efl_wl/efl_wl.c b/src/lib/efl_wl/efl_wl.c index a119b9c..76db17e 100644 --- a/src/lib/efl_wl/efl_wl.c +++ b/src/lib/efl_wl/efl_wl.c @@ -3493,7 +3493,7 @@ seat_keymap_update(Comp_Seat *s) eina_file_unlink(file); eina_tmpstr_del(file); s->kbd.keymap_mem = - mmap(NULL, s->kbd.keymap_mem_size, + mmap(NULL, s->kbd.keymap_mem_size + 1, PROT_READ | PROT_WRITE, MAP_SHARED, s->kbd.keymap_fd, 0); memcpy(s->kbd.keymap_mem, str, s->kbd.keymap_mem_size); -- 2.7.4