From ff71049e6cf309f4634a158f752c3d62d3230bb6 Mon Sep 17 00:00:00 2001 From: Luis Michaelis Date: Thu, 4 Jan 2024 17:36:32 +0100 Subject: [PATCH] fix(Mesh): broken bounds check for `getVertex` --- src/Mesh.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Mesh.cc b/src/Mesh.cc index 146aae5..2ce4a38 100644 --- a/src/Mesh.cc +++ b/src/Mesh.cc @@ -126,7 +126,7 @@ ZkSize ZkMesh_getVertexCount(ZkMesh const* slf) { ZkVertex ZkMesh_getVertex(ZkMesh const* slf, ZkSize i) { ZKC_TRACE_FN(); ZKC_CHECK_NULL(slf); - ZKC_CHECK_LEN(slf->vertices, i); + ZKC_CHECK_LEN(slf->features, i); return slf->features[i]; }