diff options
author | Keith Whitwell <[email protected]> | 2008-12-12 12:05:21 +0000 |
---|---|---|
committer | Keith Whitwell <[email protected]> | 2008-12-12 12:05:21 +0000 |
commit | 71051f1f40206dd9d86d64cfdc20cc744a15f12c (patch) | |
tree | c03496968a5d13a89339bf2634c03117c346a388 /src/gallium/auxiliary/pipebuffer/pb_validate.c | |
parent | 72d456494a7074f11ab9c735d0caeae4e09a33e7 (diff) |
Revert "pipebuffer: Fix buffer overflow."
This reverts commit 55839ae064d64b7fcc180fcddb364bf31ab760dc.
Diffstat (limited to 'src/gallium/auxiliary/pipebuffer/pb_validate.c')
-rw-r--r-- | 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 94532bb4cec..726ae1688e1 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; |