Fix fuzzer issue in m3d-importer

- closes https://github.com/assimp/assimp/issues/3974
- Check for nullptr before dereferencing name in m3d-data-instance.
pull/3999/head
Kim Kulling 2021-07-26 11:56:26 +02:00 committed by GitHub
parent c3a097abc9
commit df2e7208fb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 1 deletions

View File

@ -83,7 +83,11 @@ public:
// Name
inline std::string Name() const {
if (m3d_) return std::string(m3d_->name);
if (nullptr != m3d_) {
if (nullptr!0m3d_->name) {
return std::string(m3d_->name);
}
}
return std::string();
}