All of lore.kernel.org
 help / color / mirror / Atom feed
From: Anton Blanchard <anton@samba.org>
To: grub-devel@gnu.org
Subject: [PATCH] Big endian fix for iso9660
Date: Mon, 26 Mar 2012 08:36:06 +1100	[thread overview]
Message-ID: <20120326083606.3dd952f7@kryten> (raw)

2012-03-26  Anton Blanchard  <anton@samba.org>

	* 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)


             reply	other threads:[~2012-03-25 21:36 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-03-25 21:36 Anton Blanchard [this message]
2012-03-31 10:09 ` [PATCH] Big endian fix for iso9660 Vladimir 'φ-coder/phcoder' Serbinenko

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20120326083606.3dd952f7@kryten \
    --to=anton@samba.org \
    --cc=grub-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.