Commit 27daf484 authored by Frédéric Buclin's avatar Frédéric Buclin

Bug 1253267: DOT injection vulnerability in dependency graphs when long bug summaries are wrapped

r=dkl
parent 53d6ba43
...@@ -199,6 +199,9 @@ foreach my $k (@bug_ids) { ...@@ -199,6 +199,9 @@ foreach my $k (@bug_ids) {
utf8::encode($summary) if utf8::is_utf8($summary); utf8::encode($summary) if utf8::is_utf8($summary);
$summary = wrap_comment($summary); $summary = wrap_comment($summary);
$summary =~ s/([\\\"])/\\$1/g; $summary =~ s/([\\\"])/\\$1/g;
# Newlines must be escaped too, to not break the .map file
# and to prevent code injection.
$summary =~ s/\n/\\n/g;
push(@params, qq{label="$k\\n$summary"}); push(@params, qq{label="$k\\n$summary"});
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment