mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-14 16:14:38 +00:00
A buffer overflow in enumerateConsoleClassesByCategory
This commit is contained in:
parent
34b2d91e89
commit
eab086e184
1 changed files with 1 additions and 1 deletions
|
|
@ -888,7 +888,7 @@ DefineEngineFunction( enumerateConsoleClassesByCategory, const char*, ( String c
|
||||||
&& ( repCategory[ categoryLength ] == ' ' || repCategory[ categoryLength ] == '\0' ) )
|
&& ( repCategory[ categoryLength ] == ' ' || repCategory[ categoryLength ] == '\0' ) )
|
||||||
{
|
{
|
||||||
classes.push_back( rep );
|
classes.push_back( rep );
|
||||||
bufSize += dStrlen( rep->getClassName() + 1 );
|
bufSize += dStrlen( rep->getClassName() ) + 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue