diff options
author | Andrei Ziureaev <andrei.ziureaev@arm.com> | 2020-07-14 16:45:37 +0100 |
---|---|---|
committer | David Gibson <david@gibson.dropbear.id.au> | 2020-07-15 20:40:54 +1000 |
commit | 808cdaaf524f6beb95e0ea87fc42711dbddef21a (patch) | |
tree | 2e0d6fc07627766861ed40ffb88cf453753f990a /util.h | |
parent | 3e3138b4a9565934487d7b39019282e75a894487 (diff) | |
download | device-tree-compiler-808cdaaf524f6beb95e0ea87fc42711dbddef21a.tar.gz |
dtc: Avoid UB when shifting
Prevent undefined behavior when shifting by a number that's bigger than
or equal to the width of the first operand.
Signed-off-by: Andrei Ziureaev <andrei.ziureaev@arm.com>
Message-Id: <20200714154542.18064-2-andrei.ziureaev@arm.com>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'util.h')
0 files changed, 0 insertions, 0 deletions