diff --git a/test/models/invalid/crash-30d6d0f7c529b3b66b4131700b7a4580cd7082df.ply b/test/models/invalid/crash-30d6d0f7c529b3b66b4131700b7a4580cd7082df.ply new file mode 100644 index 000000000..948f5bcf9 Binary files /dev/null and b/test/models/invalid/crash-30d6d0f7c529b3b66b4131700b7a4580cd7082df.ply differ diff --git a/test/unit/utPLYImportExport.cpp b/test/unit/utPLYImportExport.cpp index 1f733c0e7..13c90fc47 100644 --- a/test/unit/utPLYImportExport.cpp +++ b/test/unit/utPLYImportExport.cpp @@ -196,3 +196,10 @@ TEST_F(utPLYImportExport, parseErrorTest) { const aiScene *scene = importer.ReadFileFromMemory(test_file, strlen(test_file), 0); EXPECT_NE(nullptr, scene); } + +// This file is invalid, we just want to ensure that the importer is not crashing +TEST_F(utPLYImportExport, parseInvalid) { + Assimp::Importer importer; + const aiScene *scene = importer.ReadFile(ASSIMP_TEST_MODELS_DIR "/invalid/crash-30d6d0f7c529b3b66b4131700b7a4580cd7082df.ply", 0); + EXPECT_EQ(nullptr, scene); +}