瀏覽代碼

BUGFIX 2970556: Fix possible overflow in material importer ( obj ) .

git-svn-id: https://assimp.svn.sourceforge.net/svnroot/assimp/trunk@833 67173fc5-114c-0410-ac8e-9d2fd5bffc1f
kimmi 15 年之前
父節點
當前提交
b0d8d83b75
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      code/ObjFileMtlImporter.h

+ 1 - 1
code/ObjFileMtlImporter.h

@@ -62,7 +62,7 @@ struct Material;
 class ObjFileMtlImporter
 {
 public:
-	static const size_t BUFFERSIZE = 1024;
+	static const size_t BUFFERSIZE = 2048;
 	typedef std::vector<char> DataArray;
 	typedef std::vector<char>::iterator DataArrayIt;
 	typedef std::vector<char>::const_iterator ConstDataArrayIt;