Remove TODO. Typo fix.

This commit is contained in:
Malcolm Tyrrell
2021-05-17 10:29:06 +01:00
parent 4ec01cfdcd
commit 6e4b9d267b
2 changed files with 1 additions and 6 deletions

View File

@@ -165,7 +165,6 @@ Logger *DefaultLogger::create(const char *name /*= "AssimpLog.txt"*/,
// ----------------------------------------------------------------------------------
void Logger::debugInternal(Assimp::Formatter::format f) {
std::string message = f;
// TODO: Should limit sizes in the formatter.
// SECURITY FIX: see above
if (message.length() > MAX_LOG_MESSAGE_LENGTH) {
return;
@@ -176,7 +175,6 @@ void Logger::debugInternal(Assimp::Formatter::format f) {
// ----------------------------------------------------------------------------------
void Logger::verboseDebugInternal(Assimp::Formatter::format f) {
std::string message = f;
// TODO: Should limit sizes in the formatter.
// SECURITY FIX: see above
if (message.length() > MAX_LOG_MESSAGE_LENGTH) {
return;
@@ -187,7 +185,6 @@ void Logger::verboseDebugInternal(Assimp::Formatter::format f) {
// ----------------------------------------------------------------------------------
void Logger::infoInternal(Assimp::Formatter::format f) {
std::string message = f;
// TODO: Should limit sizes in the formatter.
// SECURITY FIX: see above
if (message.length() > MAX_LOG_MESSAGE_LENGTH) {
return;
@@ -198,7 +195,6 @@ void Logger::infoInternal(Assimp::Formatter::format f) {
// ----------------------------------------------------------------------------------
void Logger::warnInternal(Assimp::Formatter::format f) {
std::string message = f;
// TODO: Should limit sizes in the formatter.
// SECURITY FIX: see above
if (message.length() > MAX_LOG_MESSAGE_LENGTH) {
return;
@@ -209,7 +205,6 @@ void Logger::warnInternal(Assimp::Formatter::format f) {
// ----------------------------------------------------------------------------------
void Logger::errorInternal(Assimp::Formatter::format f) {
std::string message = f;
// TODO: Should limit sizes in the formatter.
// SECURITY FIX: see above
if (message.length() > MAX_LOG_MESSAGE_LENGTH) {
return;