Merge branch 'xkb_resource_oob_read' into 'master'
Fix out of bounds memory read in get_keymap_from_resource. See merge request Librem5/squeekboard!97
This commit is contained in:
@ -124,7 +124,7 @@ get_keymap_from_resource(const gchar *keyboard_type, gboolean fallback)
|
||||
&bytes_read, NULL, &error))
|
||||
goto keymap_error;
|
||||
|
||||
return g_utf8_make_valid (contents, -1);
|
||||
return g_utf8_make_valid (contents, size);
|
||||
|
||||
keymap_error:
|
||||
if (fallback)
|
||||
|
||||
Reference in New Issue
Block a user