From 2797a19eadfce8c01c3a184991c3a6507f35ab05 Mon Sep 17 00:00:00 2001 From: Konstantin Ryabitsev Date: Tue, 24 Nov 2020 09:11:56 -0500 Subject: Fix crash due to incorrect array length Don't use self.expected, but actual array length when preparing attestation report. Signed-off-by: Konstantin Ryabitsev --- b4/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/b4/__init__.py b/b4/__init__.py index edd6c0c..b8d5b7d 100644 --- a/b4/__init__.py +++ b/b4/__init__.py @@ -493,7 +493,7 @@ class LoreSeries: logger.critical('WARNING: Unable to add your Signed-off-by: git returned no user.name or user.email') addmysob = False - attdata = [(None, None)] * self.expected + attdata = [(None, None)] * len(self.patches[1:]) attpolicy = config['attestation-policy'] if config['attestation-checkmarks'] == 'fancy': -- cgit v1.2.3