mirror of
https://github.com/systemd/systemd.git
synced 2024-11-27 20:23:36 +08:00
conf-parser: reject utf8-invalid lines
This commit is contained in:
parent
2b633119a0
commit
78d17fa099
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user