aboutsummaryrefslogtreecommitdiff
path: root/util.c
diff options
context:
space:
mode:
authorElvira Khabirova <e.khabirova@omp.ru>2021-11-09 18:47:19 +0300
committerDavid Gibson <david@gibson.dropbear.id.au>2021-11-17 12:22:53 +1100
commitc19a4bafa514c2c85876f0de35782abd11bed7ec (patch)
treed238ead61ff73ae28002b115f235a3e033cca6ea /util.c
parent1cc41b1c969f1fa5090b166397e4bab4ab1aa449 (diff)
downloaddtc-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