diff options
Diffstat (limited to 'meta')
-rw-r--r-- | meta/classes/cve-check.bbclass | 2 | ||||
-rw-r--r-- | meta/recipes-core/meta/cve-update-db-native.bb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/meta/classes/cve-check.bbclass b/meta/classes/cve-check.bbclass index 01b3637469..0ab022b135 100644 --- a/meta/classes/cve-check.bbclass +++ b/meta/classes/cve-check.bbclass | |||
@@ -214,7 +214,7 @@ def check_cves(d, patched_cves): | |||
214 | (_, _, _, version_start, operator_start, version_end, operator_end) = row | 214 | (_, _, _, version_start, operator_start, version_end, operator_end) = row |
215 | #bb.debug(2, "Evaluating row " + str(row)) | 215 | #bb.debug(2, "Evaluating row " + str(row)) |
216 | 216 | ||
217 | if (operator_start == '=' and pv == version_start): | 217 | if (operator_start == '=' and pv == version_start) or version_start == '-': |
218 | vulnerable = True | 218 | vulnerable = True |
219 | else: | 219 | else: |
220 | if operator_start: | 220 | if operator_start: |
diff --git a/meta/recipes-core/meta/cve-update-db-native.bb b/meta/recipes-core/meta/cve-update-db-native.bb index 575254af40..1b4f31692b 100644 --- a/meta/recipes-core/meta/cve-update-db-native.bb +++ b/meta/recipes-core/meta/cve-update-db-native.bb | |||
@@ -122,7 +122,7 @@ def parse_node_and_insert(c, node, cveId): | |||
122 | product = cpe23[4] | 122 | product = cpe23[4] |
123 | version = cpe23[5] | 123 | version = cpe23[5] |
124 | 124 | ||
125 | if version != '*': | 125 | if version != '*' and version != '-': |
126 | # Version is defined, this is a '=' match | 126 | # Version is defined, this is a '=' match |
127 | yield [cveId, vendor, product, version, '=', '', ''] | 127 | yield [cveId, vendor, product, version, '=', '', ''] |
128 | else: | 128 | else: |