----------------------------------------------------------------------------------
| 196 | |
| 197 | // ---------------------------------------------------------------------------------- |
| 198 | void Logger::warn(const char *message) { |
| 199 | |
| 200 | // SECURITY FIX: see above |
| 201 | if (strlen(message) > MAX_LOG_MESSAGE_LENGTH) { |
| 202 | return OnWarn("<fixme: long message discarded>"); |
| 203 | } |
| 204 | return OnWarn(message); |
| 205 | } |
| 206 | |
| 207 | // ---------------------------------------------------------------------------------- |
| 208 | void Logger::error(const char *message) { |
no test coverage detected