| commit | 741a6d010d09b5bafca8e4cdfb6b2f8a2c07994d | [log] [tgz] |
|---|---|---|
| author | Jon Loeliger <jdl@freescale.com> | Thu Sep 25 11:02:17 2008 -0500 |
| committer | Gerald Van Baren <vanbaren@cideas.com> | Wed Oct 01 22:01:52 2008 -0400 |
| tree | e980613007375a209df7a888a0acbc0a6459fea1 | |
| parent | bbdbc7cb3abefda5bd998edbcf0508fe6256327d [diff] |
Fix an overflow case in fdt_offset_ptr() detected by GCC 4.3.
Using Gcc 4.3 detected this problem:
../dtc/libfdt/fdt.c: In function 'fdt_next_tag':
../dtc/libfdt/fdt.c:82: error: assuming signed overflow does not
occur when assuming that (X + c) < X is always false
To fix the problem, treat the offset as an unsigned int.
The problem report and proposed fix were provided
by Steve Papacharalambous <stevep@freescale.com>.
Signed-off-by: Jon Loeliger <jdl@freescale.com>