All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Fix a possible overflow case detected by gcc 4.3.2
@ 2009-02-23 16:43 Emil Medve
       [not found] ` <1235407416-10005-1-git-send-email-Emilian.Medve-eDlz3WWmN0ll57MIdRCFDg@public.gmane.org>
  0 siblings, 1 reply; 2+ messages in thread
From: Emil Medve @ 2009-02-23 16:43 UTC (permalink / raw)
  To: jdl-eDlz3WWmN0ll57MIdRCFDg
  Cc: devicetree-discuss-mnsaURCQ41sdnm+yROfE0A, Emil Medve

.../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-eDlz3WWmN0ll57MIdRCFDg@public.gmane.org>
---
 libfdt/fdt_sw.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

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;
-- 
1.6.1.3

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] Fix a possible overflow case detected by gcc 4.3.2
       [not found] ` <1235407416-10005-1-git-send-email-Emilian.Medve-eDlz3WWmN0ll57MIdRCFDg@public.gmane.org>
@ 2009-02-23 19:34   ` Jon Loeliger
  0 siblings, 0 replies; 2+ messages in thread
From: Jon Loeliger @ 2009-02-23 19:34 UTC (permalink / raw)
  To: Emil Medve; +Cc: devicetree-discuss-mnsaURCQ41sdnm+yROfE0A

> .../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-eDlz3WWmN0ll57MIdRCFDg@public.gmane.org>

Applied.

Thanks,
jdl

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-02-23 19:34 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-02-23 16:43 [PATCH] Fix a possible overflow case detected by gcc 4.3.2 Emil Medve
     [not found] ` <1235407416-10005-1-git-send-email-Emilian.Medve-eDlz3WWmN0ll57MIdRCFDg@public.gmane.org>
2009-02-23 19:34   ` Jon Loeliger

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.