mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-27 22:46: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
|
gpointer
|
||||||
g_malloc_n (gsize n_blocks,
|
g_malloc_n (gsize n_blocks,
|
||||||
|
Loading…
Reference in New Issue
Block a user