summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorSalvatore Bonaccorso <carnil@debian.org>2019-03-29 13:59:52 +0100
committerSalvatore Bonaccorso <carnil@debian.org>2019-06-21 23:20:56 +0200
commit42639745cd2c8e716470bd4eef9f77b893ec9ee2 (patch)
tree9c8c4d4b15656cdd826c7dd5472e74a3bbbd35f9 /bin
parent1712d1c2045b49899fa5caa6de64c6d432f49cab (diff)
Relax extraction for CVE description from allitems.txt file
MITRE recently did changes on the infrastructure to submit CVE entries and slightly changed as well format of produced files. Recent entries do not seem to contain anymore a strict \n\n\n separation between the CVE description further from other notes attached to the entry. Slightly relax the regular expression but still try to catch correctly the description only in the description() subroutine by still anchoring to two \n\n, and two following \n\n to seperate the description. Signed-off-by: Salvatore Bonaccorso <carnil@debian.org>
Diffstat (limited to 'bin')
-rwxr-xr-xbin/check-new-issues2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/check-new-issues b/bin/check-new-issues
index 8e8e701c95..0e35d72d1c 100755
--- a/bin/check-new-issues
+++ b/bin/check-new-issues
@@ -448,7 +448,7 @@ sub description {
defined $data->{$name}->{CVE} or return "";
- ${$data->{$name}->{CVE}} =~ /\n\n(.*\n)\n\n/s;
+ ${$data->{$name}->{CVE}} =~ /\n\n(.*\n)\n/s;
my $desc = $1;
$desc =~ s/\n\n+/\n/;

© 2014-2024 Faster IT GmbH | imprint | privacy policy