Example #1
0
// ----------------------------------------------------------------------------------
void Logger::debug(const std::string &message)    {

    // SECURITY FIX: otherwise it's easy to produce overruns ...
    if (message.length()>MAX_LOG_MESSAGE_LENGTH) {
        ai_assert(false);
        return;
    }
    return OnDebug(message.c_str());
}
Example #2
0
// ----------------------------------------------------------------------------------
void Logger::debug(const char* message) {

    // SECURITY FIX: otherwise it's easy to produce overruns since
    // sometimes importers will include data from the input file
    // (i.e. node names) in their messages.
    if (strlen(message)>MAX_LOG_MESSAGE_LENGTH) {
        return;
    }
    return OnDebug(message);
}