summaryrefslogtreecommitdiffstats
path: root/meta/classes/base.bbclass
diff options
context:
space:
mode:
authorRoss Burton <ross.burton@intel.com>2018-08-13 18:20:54 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2018-08-14 11:36:22 +0100
commite2b8a3d5a10868f9c0dec8d7b9f5f89fdd100fc8 (patch)
treed3867ae1b7364484878802064d022360c057e7e2 /meta/classes/base.bbclass
parent9e291d9923efc988abe8689c64bafbb29da06339 (diff)
downloadopenembedded-core-e2b8a3d5a10868f9c0dec8d7b9f5f89fdd100fc8.tar.gz
openembedded-core-e2b8a3d5a10868f9c0dec8d7b9f5f89fdd100fc8.tar.bz2
openembedded-core-e2b8a3d5a10868f9c0dec8d7b9f5f89fdd100fc8.zip
classes: sanity-check LIC_FILES_CHKSUM
We assume that LIC_FILES_CHKSUM is a file: URI but don't actually verify this, which can lead to problems if you have a URI that resolves to a path of / as Bitbake will then dutifully checksum / recursively. [ YOCTO #12883 ] Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/base.bbclass')
-rw-r--r--meta/classes/base.bbclass4
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/classes/base.bbclass b/meta/classes/base.bbclass
index 1a359a04b7..df11c8b270 100644
--- a/meta/classes/base.bbclass
+++ b/meta/classes/base.bbclass
@@ -100,8 +100,8 @@ def get_lic_checksum_file_list(d):
# We only care about items that are absolute paths since
# any others should be covered by SRC_URI.
try:
- path = bb.fetch.decodeurl(url)[2]
- if not path:
+ (method, host, path, user, pswd, parm) = bb.fetch.decodeurl(url)
+ if method != "file" or not path:
raise bb.fetch.MalformedUrl(url)
if path[0] == '/':