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.
This commit is contained in:
Emmanuel Fleury
2019-05-14 17:49:44 +02:00
committed by Philip Withnall
parent 6729a82b0c
commit ba3ff8741f

View File

@@ -2322,7 +2322,7 @@ g_format_size_full (guint64 size,
struct Format
{
guint64 factor;
char string[9];
char string[10];
};
typedef enum