mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-11-04 18:18:56 +01:00
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:
committed by
Philip Withnall
parent
6729a82b0c
commit
ba3ff8741f
@@ -2322,7 +2322,7 @@ g_format_size_full (guint64 size,
|
|||||||
struct Format
|
struct Format
|
||||||
{
|
{
|
||||||
guint64 factor;
|
guint64 factor;
|
||||||
char string[9];
|
char string[10];
|
||||||
};
|
};
|
||||||
|
|
||||||
typedef enum
|
typedef enum
|
||||||
|
|||||||
Reference in New Issue
Block a user