Re: HFS endianness

2009-08-10 Thread Colin Watson
On Tue, Aug 11, 2009 at 01:15:54AM +0200, Vladimir 'phcoder' Serbinenko wrote: > Hello I was looking which FS were little and which are big-endian. > This attracted my attention in hfs.c: > /* Adjust len so it we can't read past the end of the file. */ > if (len > grub_le_to_cpu32 (data->size)

Re: HFS endianness

2009-08-10 Thread Vladimir 'phcoder' Serbinenko
On Tue, Aug 11, 2009 at 1:15 AM, Vladimir 'phcoder' Serbinenko wrote: > Hello I was looking which FS were little and which are big-endian. > This attracted my attention in hfs.c: >  /* Adjust len so it we can't read past the end of the file.  */ >  if (len > grub_le_to_cpu32 (data->size)) >    len