support/scripts/pkg-stats: consider "-" as a wildcard when doing CVE version matching
authorThomas Petazzoni <thomas.petazzoni@bootlin.com>
Thu, 27 Aug 2020 16:55:08 +0000 (18:55 +0200)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Fri, 28 Aug 2020 07:14:38 +0000 (09:14 +0200)
commit008ca2c583cb9dc70cd30c5318b3b1cbef57b06a
tree43788968d0d57f452086d486bc21a234bc3a0da3
parente631c314b1b8668886fea7659114054b1031e5dd
support/scripts/pkg-stats: consider "-" as a wildcard when doing CVE version matching

Some CVE entries in the NVD database have version_value set to "-",
which seems to indicate that it applies to all versions of the
software project, or that they don't really know which versions are
affected, and which are not.

So, for the benefit of doubt, it seems more appropriate to consider
such CVEs as affecting our packages.

This makes the total number of CVEs affecting our next branch jump
from 141 CVEs to 658 CVEs, but that number will go back down once we
switch to the JSON 1.1 schema. Indeed, in the JSON 1.0 schema, there
are often cases where a version_value is set to "=" *and* specific
versions are set to.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
support/scripts/pkg-stats