Bug 624968 - div by zero in g_malloc_n family

This commit is contained in:
Behdad Esfahbod 2010-07-21 16:08:19 -04:00
parent 5063d78baa
commit 8f80ff02af

View File

@ -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,