Module: Mesa
Branch: gallium-0.1
Commit: 71051f1f40206dd9d86d64cfdc20cc744a15f12c
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=71051f1f40206dd9d86d64cfdc20cc744a15f12c

Author: Keith Whitwell <[email protected]>
Date:   Fri Dec 12 12:05:21 2008 +0000

Revert "pipebuffer: Fix buffer overflow."

This reverts commit 55839ae064d64b7fcc180fcddb364bf31ab760dc.

---

 src/gallium/auxiliary/pipebuffer/pb_validate.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/gallium/auxiliary/pipebuffer/pb_validate.c 
b/src/gallium/auxiliary/pipebuffer/pb_validate.c
index 94532bb..726ae16 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_validate_entry));
+   vl->entries = (struct pb_validate_entry *)CALLOC(vl->size, sizeof(struct 
pb_buffer *));
    if(!vl->entries) {
       FREE(vl);
       return NULL;

_______________________________________________
mesa-commit mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to