[U-Boot] [PATCH] memmove_wd: Allow overlapping memory area

Wolfgang Denk wd at denx.de
Mon Aug 9 14:27:16 CEST 2010


Dear Alexander Stein,

In message <201008091351.39800.alexander.stein at systec-electronic.com> you wrote:
> 
> > Better do not build on undefined behaviour.
> 
> Yes, of course. But it seems difficult to recognise thing like a simple 
> memmove with dest < src as an undefined behavior.

See the FAQ: http://www.denx.de/wiki/view/DULG/LinuxUncompressingError

It has been explained before (and often) that the download address of
a kernel image must be sufficiently far away from the load address in
the image header.

> > Please note that I'm not against fixing this problem, but if we
> > address it, it should be fixed correctly, i. e. in sich a way that it
> > will always work, not only for certain cases.
> 
> So how to fix this then? I'm totally inexperienced to compressed images.

Well, I don't an easy fix for the compression case.

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Only a fool fights in a burning house.
	-- Kank the Klingon, "Day of the Dove", stardate unknown


More information about the U-Boot mailing list