From 59b70e473e994d3efaa33f7a9e1e934fb3a8ca8b Mon Sep 17 00:00:00 2001 From: sanine Date: Mon, 26 Sep 2022 20:10:54 -0500 Subject: fix memory overflow bug in test_node_push and add import_scene.test.c --- src/import/import_node.test.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/import/import_node.test.c') diff --git a/src/import/import_node.test.c b/src/import/import_node.test.c index 7c498a8..fed3125 100644 --- a/src/import/import_node.test.c +++ b/src/import/import_node.test.c @@ -42,6 +42,7 @@ void test_push_node() struct aiNode nodeC; struct aiNode *a_children[] = { &nodeC }; nodeA.mChildren = a_children; + nodeA.mNumChildren = 1; nodeC.mMeshes = meshes + 7; nodeC.mNumMeshes = 1; nodeC.mChildren = NULL; -- cgit v1.2.1