ref: 3399b03de98a64353796820dfdd74a08fa246be5
parent: f4c733880aee7a1224d3d2ebb3bd2c6d8859cbd1
author: Noam Preil <noam@pixelhero.dev>
date: Thu Oct 9 03:21:17 EDT 2025
libventi: ensure there is sufficient room for padding
--- a/sys/src/libventi/mem.c
+++ b/sys/src/libventi/mem.c
@@ -65,7 +65,7 @@
else
align = 4;
- if(n > ChunkSize){+ if(n + align > ChunkSize){p = sbrk(n);
if(p == (void*)-1)
sysfatal("Failed to allocate permanent chunk size %lud", n);--
⑨