mirror of
https://github.com/mmueller41/genode.git
synced 2026-01-21 20:42:56 +01:00
jitterentropy: clear memory in jent_zalloc()
This commit is contained in:
@@ -31,7 +31,12 @@ void jitterentropy_init(Genode::Allocator &alloc)
|
||||
void *jent_zalloc(size_t len)
|
||||
{
|
||||
if (!_alloc) { return 0; }
|
||||
return _alloc->alloc(len);
|
||||
|
||||
void *p = _alloc->alloc(len);
|
||||
if (p)
|
||||
Genode::memset(p, 0, len);
|
||||
|
||||
return p;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user