Skip to content

Commit

Permalink
Add aiProcess_ValidateDataStructure flag to the fuzzer (#5951)
Browse files Browse the repository at this point in the history
  • Loading branch information
tyler92 authored Jan 10, 2025
1 parent f2c6aa1 commit 0834fed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fuzz/assimp_fuzzer.cc
Original file line number Diff line number Diff line change
@@ -53,8 +53,8 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t dataSize) {
#endif

Importer importer;
const aiScene *sc = importer.ReadFileFromMemory(data, dataSize,
aiProcessPreset_TargetRealtime_Quality, nullptr );
unsigned int flags = aiProcessPreset_TargetRealtime_Quality | aiProcess_ValidateDataStructure;
const aiScene *sc = importer.ReadFileFromMemory(data, dataSize, flags, nullptr);

if (sc == nullptr) {
return 0;

0 comments on commit 0834fed

Please sign in to comment.