From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1SBv6l-0004gr-B4 for mharc-grub-devel@gnu.org; Sun, 25 Mar 2012 17:36:15 -0400 Received: from eggs.gnu.org ([208.118.235.92]:54903) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SBv6i-0004gb-QE for grub-devel@gnu.org; Sun, 25 Mar 2012 17:36:13 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SBv6g-0006nc-V0 for grub-devel@gnu.org; Sun, 25 Mar 2012 17:36:12 -0400 Received: from ozlabs.org ([203.10.76.45]:45876) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SBv6g-0006nG-Iy for grub-devel@gnu.org; Sun, 25 Mar 2012 17:36:10 -0400 Received: from kryten (ppp121-44-32-91.lns20.syd6.internode.on.net [121.44.32.91]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPSA id 71DD6B6EE7 for ; Mon, 26 Mar 2012 08:36:07 +1100 (EST) Date: Mon, 26 Mar 2012 08:36:06 +1100 From: Anton Blanchard To: grub-devel@gnu.org Subject: [PATCH] Big endian fix for iso9660 Message-ID: <20120326083606.3dd952f7@kryten> X-Mailer: Claws Mail 3.7.8 (GTK+ 2.24.4; i686-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 203.10.76.45 X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: The development of GNU GRUB List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 25 Mar 2012 21:36:14 -0000 2012-03-26 Anton Blanchard * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Do not byteswap 8 bit values. Index: grub/grub-core/fs/iso9660.c =================================================================== --- grub.orig/grub-core/fs/iso9660.c 2012-03-09 11:22:11.198004000 +1100 +++ grub/grub-core/fs/iso9660.c 2012-03-26 08:30:18.281488042 +1100 @@ -620,7 +620,7 @@ grub_iso9660_iterate_dir (grub_fshelp_no unsigned int pos = 1; /* The symlink is not stored as a POSIX symlink, translate it. */ - while (pos + sizeof (*entry) < grub_le_to_cpu32 (entry->len)) + while (pos + sizeof (*entry) < entry->len) { /* The current position is the `Component Flag'. */ switch (entry->data[pos] & 30)