diff options
author | José Fonseca <[email protected]> | 2008-11-25 14:01:40 +0900 |
---|---|---|
committer | José Fonseca <[email protected]> | 2008-11-25 15:49:23 +0900 |
commit | 55839ae064d64b7fcc180fcddb364bf31ab760dc (patch) | |
tree | 1fac3ba6a7e5d8bce38f467407c6264616290b6c /src/gallium/auxiliary/pipebuffer/pb_validate.c | |
parent | f8870af44b32d4c69ef11013897143d46966c8e4 (diff) |
pipebuffer: Fix buffer overflow.
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 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; |