mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-07-23 10:27:51 +02:00
Bug 624968 - div by zero in g_malloc_n family
This commit is contained in:
@@ -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,
|
||||
|
Reference in New Issue
Block a user