Skip to content

Commit a92c563

Browse files
noopwafelsvenpeter42
authored andcommitted
proxyclient: add validation check for re-serialized ADT size
Signed-off-by: Alyssa Milburn <amilburn@zall.org>
1 parent af8e3b8 commit a92c563

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

proxyclient/m1n1/hv/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1908,6 +1908,7 @@ def start(self):
19081908

19091909
adt_blob = self.adt.build()
19101910
print(f"Uploading ADT (0x{len(adt_blob):x} bytes)...")
1911+
assert len(adt_blob) <= align(self.u.ba.devtree_size)
19111912
self.iface.writemem(self.adt_base, adt_blob)
19121913

19131914
print("Improving logo...")

0 commit comments

Comments
 (0)