From: José Fonseca Date: Tue, 25 Nov 2008 05:01:40 +0000 (+0900) Subject: pipebuffer: Fix buffer overflow. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=55839ae064d64b7fcc180fcddb364bf31ab760dc;p=mesa.git pipebuffer: Fix buffer overflow. --- diff --git a/src/gallium/auxiliary/pipebuffer/pb_validate.c b/src/gallium/auxiliary/pipebuffer/pb_validate.c index 726ae1688e1..94532bb4cec 100644 --- a/src/gallium/auxiliary/pipebuffer/pb_validate.c +++ b/src/gallium/auxiliary/pipebuffer/pb_validate.c @@ -182,7 +182,7 @@ pb_validate_create() return NULL; vl->size = PB_VALIDATE_INITIAL_SIZE; - vl->entries = (struct pb_validate_entry *)CALLOC(vl->size, sizeof(struct pb_buffer *)); + vl->entries = (struct pb_validate_entry *)CALLOC(vl->size, sizeof(struct pb_validate_entry)); if(!vl->entries) { FREE(vl); return NULL;