mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-04 17:50:11 +01:00
pipebuffer: Fix buffer overflow.
This commit is contained in:
parent
f8870af44b
commit
55839ae064
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue