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
commite73aaa76f49ed06e4d142bc8b7569ece518f9181 (patch)
tree7b6f07c903ac00b0d8ce54eea67d2baafe0ee10c /bin
parent688d9bb9896fc5b54f4a1b0b89c844f05c9adac5 (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