Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1Mae5z-0002cH-OA for mharc-grub-devel@gnu.org; Mon, 10 Aug 2009 19:16:03 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Mae5y-0002cC-F2 for grub-devel@gnu.org; Mon, 10 Aug 2009 19:16:02 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Mae5s-0002Zf-Ah for grub-devel@gnu.org; Mon, 10 Aug 2009 19:16:01 -0400 Received: from [199.232.76.173] (port=39073 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mae5s-0002Zc-7k for grub-devel@gnu.org; Mon, 10 Aug 2009 19:15:56 -0400 Received: from mail-bw0-f222.google.com ([209.85.218.222]:53374) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Mae5r-0005sa-VL for grub-devel@gnu.org; Mon, 10 Aug 2009 19:15:56 -0400 Received: by bwz22 with SMTP id 22so3183883bwz.42 for ; Mon, 10 Aug 2009 16:15:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type:content-transfer-encoding; bh=pwLWkwGZ2ajJiarFs22RfxRlzuu6UGm08UZ6xoDxLdM=; b=DNrT8H0TfY5Nev1qXAE8Yyh+GHsZC5MY5246KaXssJbZG6FVqh6qJXCgg+RXnnVutR ge39Q24n4MaEgYItHgbn70B9Gv2a0w0yV/NePbA/HGANQNr0aex8otfxViCWWKySsCdo goG+8QHyEUm22mo4kS0Kts5hU8aRtEmXaS/n4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type :content-transfer-encoding; b=prdBgV1k26c62ReuUWiFWm14O7Qtqzypn/YB1hsdmKImtlI7EXGmVksLo0xowa44H1 Ya6PFZnK/IP4PsBtEOs+vu9IvvzDrP/x8o/sJ6VriVvcjncCOLBKj/TbVFlod3eiHOMm MHIhRwyrPx/PUaZPTDY0eeKdh52wJ7r9xVhi8= MIME-Version: 1.0 Received: by 10.204.66.17 with SMTP id l17mr5866337bki.108.1249946154585; Mon, 10 Aug 2009 16:15:54 -0700 (PDT) Date: Tue, 11 Aug 2009 01:15:54 +0200 Message-ID: From: "Vladimir 'phcoder' Serbinenko" To: The development of GRUB 2 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Subject: HFS endianness X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GRUB 2 List-Id: The development of GRUB 2 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 10 Aug 2009 23:16:03 -0000 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 = grub_le_to_cpu32 (data->size); Which looks suspicious for big-endian FS. Can anyone check? If note this mail will be note to self -- Regards Vladimir 'phcoder' Serbinenko Personal git repository: http://repo.or.cz/w/grub2/phcoder.git