Merge pull request #523 from turol/afl-fixes

More crash fixes
This commit is contained in:
Kim Kulling
2015-06-22 16:56:51 +02:00
6 changed files with 24 additions and 7 deletions

View File

@@ -169,7 +169,6 @@ void Logger::debug(const char* message) {
// sometimes importers will include data from the input file
// (i.e. node names) in their messages.
if (strlen(message)>MAX_LOG_MESSAGE_LENGTH) {
ai_assert(false);
return;
}
return OnDebug(message);
@@ -180,7 +179,6 @@ void Logger::info(const char* message) {
// SECURITY FIX: see above
if (strlen(message)>MAX_LOG_MESSAGE_LENGTH) {
ai_assert(false);
return;
}
return OnInfo(message);
@@ -191,7 +189,6 @@ void Logger::warn(const char* message) {
// SECURITY FIX: see above
if (strlen(message)>MAX_LOG_MESSAGE_LENGTH) {
ai_assert(false);
return;
}
return OnWarn(message);
@@ -202,7 +199,6 @@ void Logger::error(const char* message) {
// SECURITY FIX: see above
if (strlen(message)>MAX_LOG_MESSAGE_LENGTH) {
ai_assert(false);
return;
}
return OnError(message);