Fix error in aiString documentation. MAXLEN includes the terminal NULL. This is unusual, but true.

Fix overflow vulnerability in SceneCombiner. Thanks to Krishty to point it out.

git-svn-id: https://assimp.svn.sourceforge.net/svnroot/assimp/trunk@683 67173fc5-114c-0410-ac8e-9d2fd5bffc1f
This commit is contained in:
aramis_acg
2010-04-14 21:45:00 +00:00
parent 6a2a542986
commit 685d2b83c5
2 changed files with 8 additions and 1 deletions

View File

@@ -230,7 +230,8 @@ struct aiColor3D
* UTF-8 strings to their working character set (i.e. MBCS, WideChar).
*
* We use this representation instead of std::string to be C-compatible. The
* (binary) length of such a string is limited to MAXLEN characters (excluding the 0).
* (binary) length of such a string is limited to MAXLEN characters (including the
* the terminating zero).
*/
struct aiString
{