[Crosstoolchain-logs] [device-tree-compiler] 324/357: Fix a possible overflow case detected by gcc 4.3.2

Hector Oron zumbi at moszumanska.debian.org
Thu Dec 8 17:06:28 UTC 2016


This is an automated email from the git hooks/post-receive script.

zumbi pushed a commit to branch upstream/1.3.x
in repository device-tree-compiler.

commit 804fed8dcdb44fe83fcfc2e310c09d45c7602d9d
Author: Emil Medve <Emilian.Medve at Freescale.com>
Date:   Mon Feb 23 10:43:36 2009 -0600

    Fix a possible overflow case detected by gcc 4.3.2
    
    .../dtc/libfdt/fdt_sw.c: In function 'fdt_end_node':
    .../dtc/libfdt/fdt_sw.c:81: error: assuming signed overflow does not occur when assuming that (X + c) < X is always false
    
    Signed-off-by: Emil Medve <Emilian.Medve at Freescale.com>
---
 libfdt/fdt_sw.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libfdt/fdt_sw.c b/libfdt/fdt_sw.c
index 2380b27..55ebebf 100644
--- a/libfdt/fdt_sw.c
+++ b/libfdt/fdt_sw.c
@@ -70,7 +70,7 @@ static int _fdt_sw_check_header(void *fdt)
 			return err; \
 	}
 
-static void *_fdt_grab_space(void *fdt, int len)
+static void *_fdt_grab_space(void *fdt, size_t len)
 {
 	int offset = fdt_size_dt_struct(fdt);
 	int spaceleft;

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/crosstoolchain/device-tree-compiler.git



More information about the Crosstoolchain-logs mailing list