assimp/assimp/issues/698: Increase upper limits for hints.
parent
75f7d93434
commit
ba35c97e9d
|
@ -491,7 +491,7 @@ const aiScene* Importer::ReadFileFromMemory( const void* pBuffer,
|
||||||
pHint = "";
|
pHint = "";
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!pBuffer || !pLength || strlen(pHint) > 100) {
|
if (!pBuffer || !pLength || strlen(pHint) > MaxLenHint ) {
|
||||||
pimpl->mErrorString = "Invalid parameters passed to ReadFileFromMemory()";
|
pimpl->mErrorString = "Invalid parameters passed to ReadFileFromMemory()";
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
|
@ -114,6 +114,9 @@ namespace Assimp {
|
||||||
* threads for loading, each thread should maintain its own Importer instance.
|
* threads for loading, each thread should maintain its own Importer instance.
|
||||||
*/
|
*/
|
||||||
class ASSIMP_API Importer {
|
class ASSIMP_API Importer {
|
||||||
|
public:
|
||||||
|
/// @brief The upper limit for hints.
|
||||||
|
static const unsigned int MaxLenHint = 200;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue