diff options
author | Salvatore Bonaccorso <carnil@debian.org> | 2019-03-29 13:59:52 +0100 |
---|---|---|
committer | Salvatore Bonaccorso <carnil@debian.org> | 2019-06-21 23:20:56 +0200 |
commit | 64ce978989430e86e17e9e1f1a603f60a07f7a19 (patch) | |
tree | f50ecb6eff16dab7e13085b69580bd298c41d4fa /bin/check-new-issues | |
parent | cc7120ee3530ac4fb4d432c3395cd1d92f10b8dc (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/check-new-issues')
-rwxr-xr-x | bin/check-new-issues | 2 |
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/; |