diff options
author | Elvira Khabirova <e.khabirova@omp.ru> | 2021-11-09 18:47:19 +0300 |
---|---|---|
committer | David Gibson <david@gibson.dropbear.id.au> | 2021-11-17 12:22:53 +1100 |
commit | c19a4bafa514c2c85876f0de35782abd11bed7ec (patch) | |
tree | d238ead61ff73ae28002b115f235a3e033cca6ea /util.c | |
parent | 1cc41b1c969f1fa5090b166397e4bab4ab1aa449 (diff) | |
download | dtc-c19a4bafa514c2c85876f0de35782abd11bed7ec.zip dtc-c19a4bafa514c2c85876f0de35782abd11bed7ec.tar.gz dtc-c19a4bafa514c2c85876f0de35782abd11bed7ec.tar.bz2 |
libfdt: fix an incorrect integer promotion
UINT32_MAX is an integer of type unsigned int. UINT32_MAX + 1 overflows
unless explicitly computed as unsigned long long. This led to some
invalid addresses being treated as valid.
Cast UINT32_MAX to uint64_t explicitly.
Signed-off-by: Elvira Khabirova <e.khabirova@omp.ru>
Diffstat (limited to 'util.c')
0 files changed, 0 insertions, 0 deletions