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
parent 4f5fe35385
commit 101c8b3c19

View File

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