glib2/glib2-base64.patch

14 lines
444 B
Diff

Index: glib/gbase64.c
===================================================================
--- glib/gbase64.c (revision 6755)
+++ glib/gbase64.c (working copy)
@@ -368,7 +368,7 @@ g_base64_decode (const gchar *text,
g_return_val_if_fail (input_length > 1, NULL);
- ret = g_malloc0 (input_length * 3 / 4);
+ ret = g_malloc0 (input_length * 3 / 4 + 4);
*out_len = g_base64_decode_step (text, input_length, ret, &state, &save);