Explorar el Código

A buffer overflow in enumerateConsoleClassesByCategory

Glenn Smith hace 7 años
padre
commit
ed10ce2511
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      Engine/source/console/consoleObject.cpp

+ 1 - 1
Engine/source/console/consoleObject.cpp

@@ -888,7 +888,7 @@ DefineEngineFunction( enumerateConsoleClassesByCategory, const char*, ( String c
           && ( repCategory[ categoryLength ] == ' ' || repCategory[ categoryLength ] == '\0' ) )
       {
          classes.push_back( rep );
-         bufSize += dStrlen( rep->getClassName() + 1 );
+         bufSize += dStrlen( rep->getClassName() ) + 1;
       }
    }