Re: [U-Boot] [PATCH] cramfs: fix bug for wrong filename comparison

2013-07-08 Thread Holger Brunck
On 07/05/2013 11:23 PM, Albert ARIBAUD wrote: > On Thu, 4 Jul 2013 10:29:46 +0200, Holger Brunck > wrote: > >> If we have the following entry in cramfs: >> => cramfsls >> -rw-r--r-- 1922689 uImage >> >> cramfsload would also succeed if we try to do: >> => cramfsload uImage_1 >> CRAMFS load com

Re: [U-Boot] [PATCH] cramfs: fix bug for wrong filename comparison

2013-07-05 Thread Albert ARIBAUD
Hi Holger, On Thu, 4 Jul 2013 10:29:46 +0200, Holger Brunck wrote: > If we have the following entry in cramfs: > => cramfsls > -rw-r--r-- 1922689 uImage > > cramfsload would also succeed if we try to do: > => cramfsload uImage_1 > CRAMFS load complete: 1922689 bytes loaded to 0x10 > > T

[U-Boot] [PATCH] cramfs: fix bug for wrong filename comparison

2013-07-04 Thread Holger Brunck
If we have the following entry in cramfs: => cramfsls -rw-r--r-- 1922689 uImage cramfsload would also succeed if we try to do: => cramfsload uImage_1 CRAMFS load complete: 1922689 bytes loaded to 0x10 The old code succeeds if the begin of the filename we search matches with a filename store