mirror of
https://git.yoctoproject.org/poky
synced 2026-02-20 08:29:42 +01:00
cve-check: improve comment about CVE patch file names
(From OE-Core rev: fea9f2edf515cca07e867213294d0e6dafbfbd74) Signed-off-by: Michael Opdenacker <michael.opdenacker@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit 8aa613480663e11ecc62278d8c57ca719eb23899) Signed-off-by: Anuj Mittal <anuj.mittal@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
62cc2a2f86
commit
2e6a9d0ea3
@@ -166,9 +166,12 @@ def get_patches_cves(d):
|
||||
pn = d.getVar("PN")
|
||||
cve_match = re.compile("CVE:( CVE\-\d{4}\-\d+)+")
|
||||
|
||||
# Matches last CVE-1234-211432 in the file name, also if written
|
||||
# with small letters. Not supporting multiple CVE id's in a single
|
||||
# file name.
|
||||
# Matches the last "CVE-YYYY-ID" in the file name, also if written
|
||||
# in lowercase. Possible to have multiple CVE IDs in a single
|
||||
# file name, but only the last one will be detected from the file name.
|
||||
# However, patch files contents addressing multiple CVE IDs are supported
|
||||
# (cve_match regular expression)
|
||||
|
||||
cve_file_name_match = re.compile(".*([Cc][Vv][Ee]\-\d{4}\-\d+)")
|
||||
|
||||
patched_cves = set()
|
||||
|
||||
Reference in New Issue
Block a user