libxfce4ui/libxfce4ui-4.7.6-fix-libxfce4kbd-private-buffer-overflow.patch

13 lines
704 B
Diff
Raw Normal View History

diff -ur libxfce4ui-4.7.5.orig/libxfce4kbd-private/xfce-shortcuts-provider.c libxfce4ui-4.7.5/libxfce4kbd-private/xfce-shortcuts-provider.c
--- libxfce4ui-4.7.5.orig/libxfce4kbd-private/xfce-shortcuts-provider.c 2010-11-28 15:36:06.000000000 +0100
+++ libxfce4ui-4.7.5/libxfce4kbd-private/xfce-shortcuts-provider.c 2011-01-04 20:20:22.000000000 +0100
@@ -255,7 +255,7 @@
if (G_UNLIKELY (!already_registered))
{
- names = g_new0 (const gchar *, length + 1);
+ names = g_new0 (const gchar *, length + 2);
for (i = 0; provider_names != NULL && provider_names[i] != NULL; ++i)
names[i] = provider_names[i];
names[i++] = xfce_shortcuts_provider_get_name (provider);