From: Roland Scheidegger Date: Thu, 25 Jan 2007 13:32:06 +0000 (+0100) Subject: fix dstelt memory allocation to avoid hash corruption X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=db79d7dea03d5129a05d48af19049cb740799669;p=mesa.git fix dstelt memory allocation to avoid hash corruption --- diff --git a/src/mesa/vbo/vbo_split_copy.c b/src/mesa/vbo/vbo_split_copy.c index fff733ccb53..df69e4ca28f 100644 --- a/src/mesa/vbo/vbo_split_copy.c +++ b/src/mesa/vbo/vbo_split_copy.c @@ -469,7 +469,7 @@ static void replay_init( struct copy_context *copy ) copy->ib->count * 2); copy->dstelt_size = MIN2(copy->dstelt_size, copy->limits->max_indices); - copy->dstelt = _mesa_malloc(copy->dstelt_size); + copy->dstelt = _mesa_malloc(sizeof(GLuint) * copy->dstelt_size); copy->dstelt_nr = 0; /* Setup the new index buffer to point to the allocated element