tools/capable: Set data to zero before setting fields.
authorFrancis Laniel <flaniel@microsoft.com>
Mon, 11 Oct 2021 15:35:12 +0000 (17:35 +0200)
committeryonghong-song <ys114321@gmail.com>
Tue, 12 Oct 2021 17:32:19 +0000 (10:32 -0700)
commit46a2afdc82b995cc19272cdd9d781dadfc0d3b1f
tree22056f2a8b76a391773757264ad14d1b178f2050
parent0659577e8354f26455367b76fd21d1fb3f7ff18f
tools/capable: Set data to zero before setting fields.

This commit ensures data contains all 0 before setting its fields.
So, even if some fields are not set, there should be no problem with unaligned
access.

Signed-off-by: Francis Laniel <flaniel@microsoft.com>
tools/capable.py