Skip to content

Commit 767e794

Browse files
committed
Add a note about zeroing newly accessible memory in realloc().
1 parent 8a02a0f commit 767e794

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/allocators/allocator-guarantees.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,11 @@ The allocator must not:
5858
* Return a capability that has the same integer address as the passed
5959
argument, but with different bounds.
6060

61+
The allocator should:
62+
63+
* Zero any newly accessible memory before returning a pointer to it,
64+
including any allocator metadata.
65+
6166
The allocator may:
6267

6368
* Implement fail-stop semantics if the call fails for the above reasons.

0 commit comments

Comments
 (0)