소스 검색

Merge pull request #3067 from ms-maxvollmer/FBXParser_check_inputlength_fix

Added test case for fix earlier submitted
Kim Kulling 5 년 전
부모
커밋
db74f35410
2개의 변경된 파일578개의 추가작업 그리고 0개의 파일을 삭제
  1. 571 0
      test/models/FBX/cubes_with_outofrange_float.fbx
  2. 7 0
      test/unit/utFBXImporterExporter.cpp

파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 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);
+}

이 변경점에서 너무 많은 파일들이 변경되어 몇몇 파일들은 표시되지 않았습니다.