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

Alexander Stein alexander.stein at systec-electronic.com
Mon Aug 9 13:51:39 CEST 2010


Dear Wolfgang,

August 2010, 13:43:32 schrieb Wolfgang Denk:
> > Well, that's at least one possibility but it is very annoying that
> > something like memmove that works fine so far suddenly stops working
> > when watchdog support is enabled.
> 
> Yes, I understand this. It's also annoying when you've been using
> compressed images just fine for years and suddenly they stop working
> because the kernel grows beyond some magic (and undefined) limit.
> 
> 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.


> 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.

Best regards,
Alexander


More information about the U-Boot mailing list