Browse Source

Added test file and test case for ASCII FBX files with invalid (out of bounds) float values

Max Vollmer 5 years ago
parent
commit
ad278055ae
2 changed files with 578 additions and 0 deletions
  1. 571 0
      test/models/FBX/cubes_with_outofrange_float.fbx
  2. 7 0
      test/unit/utFBXImporterExporter.cpp

File diff suppressed because it is too large
+ 571 - 0
test/models/FBX/cubes_with_outofrange_float.fbx


+ 7 - 0
test/unit/utFBXImporterExporter.cpp

@@ -310,3 +310,10 @@ TEST_F(utFBXImporterExporter, sceneMetadata) {
         ASSERT_EQ(strncmp(generator.C_Str(), "Blender", 7), 0);
     }
 }
+
+TEST_F(utFBXImporterExporter, importCubesWithOutOfRangeFloat) {
+    Assimp::Importer importer;
+    const aiScene *scene = importer.ReadFile(ASSIMP_TEST_MODELS_DIR "/FBX/cubes_with_outofrange_float.fbx", aiProcess_ValidateDataStructure);
+    ASSERT_NE(nullptr, scene);
+    ASSERT_TRUE(scene->mRootNode);
+}

Some files were not shown because too many files changed in this diff