|
@@ -43,6 +43,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
|
#include "Common/ScenePreprocessor.h"
|
|
|
#include "PostProcessing/SortByPTypeProcess.h"
|
|
|
#include <assimp/scene.h>
|
|
|
+#include <assimp/postprocess.h>
|
|
|
|
|
|
using namespace std;
|
|
|
using namespace Assimp;
|
|
@@ -202,3 +203,9 @@ TEST_F(SortByPTypeProcessTest, SortByPTypeStep) {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+TEST_F(SortByPTypeProcessTest, issue389327770Test) {
|
|
|
+ Assimp::Importer importer;
|
|
|
+ const aiScene *scene = importer.ReadFile(ASSIMP_TEST_MODELS_DIR "/fuzzer_data/clusterfuzz-testcase-minimized-assimp_fuzzer-4751812606885888", aiProcessPreset_TargetRealtime_Fast);
|
|
|
+ EXPECT_NE(nullptr, scene);
|
|
|
+}
|