diff options
| author | Xavier Del Campo Romero <xavi92@disroot.org> | 2025-11-12 00:37:51 +0100 |
|---|---|---|
| committer | Xavier Del Campo Romero <xavi92@disroot.org> | 2025-11-12 00:37:51 +0100 |
| commit | 07bff5530cf22d95b98139063ab50cabb8cabe76 (patch) | |
| tree | 4c91a123b98cba9b0f44ddb6f97a7add22592369 /tinyalloc.xml | |
| parent | fd8128d9b84e362abdbd05fafe252421edee8ab2 (diff) | |
Do not resize blocks on realloc
This allocator was not designed for reallocations, and therefore
prev->size cannot be extended because that would overlap its contents
with other data.
Because of this, the only safe way to achieve a reallocation is to
always allocate a new block, copy any existing data and free the old
block.
Diffstat (limited to 'tinyalloc.xml')
0 files changed, 0 insertions, 0 deletions
