1
0
mirror of https://github.com/systemd/systemd synced 2024-07-01 07:34:28 +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:
Yu Watanabe 2024-06-19 15:17:26 +09:00 committed by Lennart Poettering
parent fdd4263cac
commit 8f33bfeca1
2 changed files with 3 additions and 1 deletions

View File

@ -48,7 +48,7 @@ static int varlink_idl_format_comment(
}
_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)
return log_error_errno(r, "Failed to split comment string: %m");

View File

@ -0,0 +1,2 @@
#\
interface.