From fc50c867e6815a69b38a7190c1302938beaff4ea Mon Sep 17 00:00:00 2001 From: Teddy Reed Date: Sun, 26 Jun 2016 14:34:45 -0700 Subject: [PATCH] Include ME objects (#43) Previously, the ME `PartitionEntry` did not include the embedded manifest object. This meant object enumeration would stop before any manifest/module/entries were seen or counted. --- uefi_firmware/me.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/uefi_firmware/me.py b/uefi_firmware/me.py index b160d0c..302da9e 100644 --- a/uefi_firmware/me.py +++ b/uefi_firmware/me.py @@ -590,6 +590,12 @@ def __init__(self, data, offset): self.has_content = False self.data = data[self.structure.Offset:partition_end] + @property + def objects(self): + if self.manifest is not None: + return [self.manifest] + return [] + def process(self): if not self.has_content: return True