Mesa (gallium-0.1): Revert "pipebuffer: Fix buffer overflow."

Keith Whitwell keithw at kemper.freedesktop.org
Fri Dec 12 17:43:27 UTC 2008


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

Author: Keith Whitwell <keith at tungstengraphics.com>
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;




More information about the mesa-commit mailing list