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
parent
c3a097abc9
commit
df2e7208fb
|
@ -83,7 +83,11 @@ public:
|
||||||
|
|
||||||
// Name
|
// Name
|
||||||
inline std::string Name() const {
|
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();
|
return std::string();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue