blob: 10a3e67cddae5761e8a15c86a576f43734a395ea [file] [log] [blame]
diff --git a/avbtool b/avbtool
index 81f1f7b..bcf447b 100755
--- a/avbtool
+++ b/avbtool
@@ -1576,7 +1576,12 @@ class AvbVBMetaHeader(object):
Exception: If the given data is malformed.
"""
assert struct.calcsize(self.FORMAT_STRING) == self.SIZE
-
+ if data:
+ if len(data)!=256:
+ print ('data length',len(data))
+ raise AvbError('data length is not 256.')
+ else:
+ print ('data length',len(data))
if data:
(self.magic, self.required_libavb_version_major,
self.required_libavb_version_minor,