summaryrefslogtreecommitdiffstats
path: root/vespalog
diff options
context:
space:
mode:
authorArne Juul <arnej@verizonmedia.com>2020-03-25 13:50:16 +0000
committerArne Juul <arnej@verizonmedia.com>2020-03-25 13:50:16 +0000
commitad02f9e1bd3bd3c464c02d3ac8408a01fb77d396 (patch)
tree4267521f7844d72a772a4a7ae7e00a9468f703a6 /vespalog
parentb64c7cdae7d88d46f62e55778d5d2e65f4f7b4bf (diff)
sanitize more input data
Diffstat (limited to 'vespalog')
-rw-r--r--vespalog/src/vespa/log/llparser.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/vespalog/src/vespa/log/llparser.cpp b/vespalog/src/vespa/log/llparser.cpp
index 8e44f36c7ae..ae1af3e6416 100644
--- a/vespalog/src/vespa/log/llparser.cpp
+++ b/vespalog/src/vespa/log/llparser.cpp
@@ -361,8 +361,7 @@ LLParser::makeMessage(const char *tmf, const char *hsf, const char *pdf,
if ((c == '\\' && src[0] == 't')
|| (c >= 32 && c < '\\')
|| (c > '\\' && c < 128)
- || c == 0
- || c > 160)
+ || c == 0)
{
*dst++ = static_cast<char>(c);
} else {