dgibson / dtc

Device Tree Compiler
219 stars 130 forks source link

libfdt: fix an incorrect integer promotion #57

Closed parport0 closed 2 years ago

parport0 commented 2 years ago

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.

Specify that 1 is an unsigned long long integer.