mirror of
https://github.com/systemd/systemd-stable.git
synced 2024-12-22 13:33:56 +03:00
catalog: reject entries where the language is too short early
Closes https://oss-fuzz.com/testcase-detail/5674475278827520
This commit is contained in:
parent
bf61b05a06
commit
c90c39ff7b
@ -217,7 +217,7 @@ static int catalog_entry_lang(const char* filename, int line,
|
||||
size_t c;
|
||||
|
||||
c = strlen(t);
|
||||
if (c == 0)
|
||||
if (c < 2)
|
||||
return log_error_errno(SYNTHETIC_ERRNO(EINVAL),
|
||||
"[%s:%u] Language too short.",
|
||||
filename, line);
|
||||
|
@ -0,0 +1,2 @@
|
||||
-- ae2f7b866b0347b9af31fe1c80b127c0 ÿ
|
||||
|
Loading…
Reference in New Issue
Block a user