pipebuffer: Fix buffer overflow.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user