conf-parser: reject utf8-invalid lines

This commit is contained in:
Yu Watanabe 2018-06-04 00:30:18 +09:00
parent 2b633119a0
commit 78d17fa099

View File

@ -211,6 +211,9 @@ static int parse_line(
return config_parse(unit, fn, NULL, sections, lookup, table, flags, userdata);
}
if (!utf8_is_valid(l))
return log_syntax_invalid_utf8(unit, LOG_WARNING, filename, line, l);
if (*l == '[') {
size_t k;
char *n;