commit b82049cc5fa404a709d2b74f65f654c18c72e278 parent bb36c865c041d5608a5882169589c951ed82e883 Author: Christophe Coustet <christophe.coustet@meso-star.com> Date: Wed, 15 Oct 2025 15:31:08 +0200 Fix invalid alloc size Diffstat:
| M | src/scad_geometry.c | | | 4 | ++-- |
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/scad_geometry.c b/src/scad_geometry.c @@ -3613,8 +3613,8 @@ scad_geometries_set_periodic } allocator = dev->allocator; - src_tags = MEM_ALLOC(allocator, src_tagsn); - tgt_tags = MEM_ALLOC(allocator, tgt_tagsn); + src_tags = MEM_ALLOC(allocator, src_tagsn * sizeof(*src_tags)); + tgt_tags = MEM_ALLOC(allocator, tgt_tagsn * sizeof(*tgt_tags)); if(!src_tags || !tgt_tags) { res = RES_MEM_ERR; goto error;