projects
/
kernel
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a22d9cf
)
Fix a possible overflow case detected by gcc 4.3.2
author
Emil Medve
<Emilian.Medve@Freescale.com>
Mon, 23 Feb 2009 16:43:36 +0000
(10:43 -0600)
committer
Gerald Van Baren
<vanbaren@cideas.com>
Wed, 1 Apr 2009 23:29:39 +0000
(19:29 -0400)
.../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@Freescale.com>
libfdt/fdt_sw.c
patch
|
blob
|
history
diff --git
a/libfdt/fdt_sw.c
b/libfdt/fdt_sw.c
index
2380b27
..
55ebebf
100644
(file)
--- 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,
in
t len)
+static void *_fdt_grab_space(void *fdt,
size_
t len)
{
int offset = fdt_size_dt_struct(fdt);
int spaceleft;