diff options
author | Emmanuel Fleury <emmanuel.fleury@u-bordeaux.fr> | 2019-05-14 17:49:44 +0200 |
---|---|---|
committer | Emmanuel Fleury <emmanuel.fleury@u-bordeaux.fr> | 2019-05-15 10:18:22 +0200 |
commit | 101c8b3c19f6c9b3ab102afd0b91e386b6aa4b98 (patch) | |
tree | 8378ba4224433729d15af682ada02d4b3fe13072 | |
parent | 4f5fe353858bc62ce6dd0f339f0821a633842e44 (diff) | |
download | glib-101c8b3c19f6c9b3ab102afd0b91e386b6aa4b98.tar.gz |
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.
-rw-r--r-- | glib/gutils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/glib/gutils.c b/glib/gutils.c index 4f7d9b19f..9e2f0b0b7 100644 --- a/glib/gutils.c +++ b/glib/gutils.c @@ -2300,7 +2300,7 @@ g_format_size_full (guint64 size, struct Format { guint64 factor; - char string[9]; + char string[10]; }; typedef enum |