From: Maciej Borzecki Date: Wed, 10 Dec 2014 11:45:56 +0000 (+0100) Subject: wic: IMAGE_BOOT_FILES format checks in bootimg-partition source X-Git-Tag: 2015-4~1000 X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=e56072aaaad6cfa222853a4e9e68dd8aa861de18;p=openembedded-core.git wic: IMAGE_BOOT_FILES format checks in bootimg-partition source Check for malformed entries in IMAGE_BOOT_FILES, fail early if such entries were found. Signed-off-by: Maciej Borzecki Signed-off-by: Maciek Borzecki Signed-off-by: Ross Burton --- diff --git a/scripts/lib/wic/plugins/source/bootimg-partition.py b/scripts/lib/wic/plugins/source/bootimg-partition.py index abf24942e8..564118ad8b 100644 --- a/scripts/lib/wic/plugins/source/bootimg-partition.py +++ b/scripts/lib/wic/plugins/source/bootimg-partition.py @@ -90,6 +90,8 @@ class BootimgPartitionPlugin(SourcePlugin): for src_entry in re.findall(r'[\w;\-\./]+', boot_files): if ';' in src_entry: dst_entry = tuple(src_entry.split(';')) + if not dst_entry[0] or not dst_entry[1]: + msger.error('Malformed boot file entry: %s' % (src_entry)) else: dst_entry = (src_entry, src_entry)