diff options
author | Jon Szymaniak <jon.szymaniak.foss@gmail.com> | 2018-05-09 16:45:10 -0500 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-05-15 10:56:49 +0100 |
commit | dd5bf3e4d2ad66d8572d622a147cea1a8fddb40d (patch) | |
tree | 267de8f712e36545e7266ef63e1e59f3d8b8c7dd /meta/recipes-kernel/lttng/babeltrace_1.5.5.bb | |
parent | 00cf91aacc8e11aedad967742a59d45724619c97 (diff) | |
download | poky-dd5bf3e4d2ad66d8572d622a147cea1a8fddb40d.tar.gz |
cve-check.bbclass: detect CVE IDs listed on multiple lines
Some backported patches fix multiple CVEs and list the corresponding
identifiers on multiple lines, rather than on a single line.
cve-check.bbclass yields false positive warnings when CVE IDs are
presented on multiple lines because re.search() returns only
the first match.
An example of this behavior may be found when running do_cve_check() on
the wpa-supplicant recipe while in the rocko branch. Only CVE-2017-13077
is reported to be patched by commit de57fd8, despite the patch including
fixes for a total of 9 CVEs.
This is resolved by iterating over all regular expression matches,
rather than just the first.
(From OE-Core rev: 8fb70ce2df66fc8404395ecbe66a75d0038f22dd)
Signed-off-by: Jon Szymaniak <jon.szymaniak.foss@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-kernel/lttng/babeltrace_1.5.5.bb')
0 files changed, 0 insertions, 0 deletions