[glib/glib-2-60: 1/2] Fixing g_format_size_full() on Windows-x64



commit ba3ff8741f501d0f89dce7399a66c47c69212a75
Author: Emmanuel Fleury <emmanuel fleury u-bordeaux fr>
Date:   Tue May 14 17:49:44 2019 +0200

    Fixing g_format_size_full() on Windows-x64
    
    For some reasons, the buffer used in the Format struct was not long
    enough on Windows-x64 and the final null ('\0') character was omitted
    leading to a limited memory disclosure.

 glib/gutils.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/glib/gutils.c b/glib/gutils.c
index 2e2d45785..321ec88da 100644
--- a/glib/gutils.c
+++ b/glib/gutils.c
@@ -2322,7 +2322,7 @@ g_format_size_full (guint64          size,
   struct Format
   {
     guint64 factor;
-    char string[9];
+    char string[10];
   };
 
   typedef enum


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]