Revert "pipebuffer: Fix buffer overflow."
authorKeith Whitwell <keith@tungstengraphics.com>
Fri, 12 Dec 2008 12:05:21 +0000 (12:05 +0000)
committerKeith Whitwell <keith@tungstengraphics.com>
Fri, 12 Dec 2008 12:05:21 +0000 (12:05 +0000)
This reverts commit 55839ae064d64b7fcc180fcddb364bf31ab760dc.

src/gallium/auxiliary/pipebuffer/pb_validate.c

index 94532bb4cec85978adcfdc140828c90bf85f1c4f..726ae1688e12ce8f26249daf9067a89189b3c362 100644 (file)
@@ -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_validate_entry));
+   vl->entries = (struct pb_validate_entry *)CALLOC(vl->size, sizeof(struct pb_buffer *));
    if(!vl->entries) {
       FREE(vl);
       return NULL;