mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-11-16 15:44:04 +01:00
Another place where malloc is expected to return zero'ed storage.
(Found with phkmalloc/2 (TNG!) send me email if you want a copy.)
This commit is contained in:
parent
d16b647e7f
commit
3dff9b4169
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=11316
@ -101,6 +101,7 @@ int value;
|
||||
|
||||
item = &firstentry(second);
|
||||
this = (struct thing *) malloc(sizeof *this);
|
||||
memset((void*)this,0,sizeof *this);
|
||||
this->next = *item;
|
||||
*item = this;
|
||||
this->value = value;
|
||||
|
Loading…
Reference in New Issue
Block a user