From: Alexander Stein Date: Mon, 9 Aug 2010 13:51:39 +0200 Subject: [U-Boot] [PATCH] memmove_wd: Allow overlapping memory area In-Reply-To: <20100809114332.9A4771536EF@gemini.denx.de> References: <1279701826-20083-1-git-send-email-alexander.stein@systec-electronic.com> <201008091310.37634.alexander.stein@systec-electronic.com> <20100809114332.9A4771536EF@gemini.denx.de> Message-ID: <201008091351.39800.alexander.stein@systec-electronic.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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