mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-26 07:26:15 +01:00
Bug 624968 - div by zero in g_malloc_n family
This commit is contained in:
parent
5063d78baa
commit
8f80ff02af
@ -263,7 +263,7 @@ g_try_realloc (gpointer mem,
|
||||
}
|
||||
|
||||
|
||||
#define SIZE_OVERFLOWS(a,b) (G_UNLIKELY ((a) > G_MAXSIZE / (b)))
|
||||
#define SIZE_OVERFLOWS(a,b) (G_UNLIKELY ((b) > 0 && (a) > G_MAXSIZE / (b)))
|
||||
|
||||
gpointer
|
||||
g_malloc_n (gsize n_blocks,
|
||||
|
Loading…
Reference in New Issue
Block a user