mirror of
https://github.com/systemd/systemd
synced 2024-10-01 13:55:20 +00:00
varlink-idl: allow unbalanced quote and trailing backslash in comment
Fixes #33381.
Fixes OSS-FUZZ#69730.
Follow-up for fbb69c0306
.
This commit is contained in:
parent
fdd4263cac
commit
8f33bfeca1
|
@ -48,7 +48,7 @@ static int varlink_idl_format_comment(
|
||||||
}
|
}
|
||||||
|
|
||||||
_cleanup_strv_free_ char **l = NULL;
|
_cleanup_strv_free_ char **l = NULL;
|
||||||
r = strv_split_full(&l, text, NEWLINE, 0);
|
r = strv_split_full(&l, text, NEWLINE, EXTRACT_RELAX);
|
||||||
if (r < 0)
|
if (r < 0)
|
||||||
return log_error_errno(r, "Failed to split comment string: %m");
|
return log_error_errno(r, "Failed to split comment string: %m");
|
||||||
|
|
||||||
|
|
2
test/fuzz/fuzz-varlink-idl/oss-fuzz-69730
Normal file
2
test/fuzz/fuzz-varlink-idl/oss-fuzz-69730
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
#\
|
||||||
|
interface.
|
Loading…
Reference in a new issue