Skip to contentSkip to conversation

Big endian fix for iso9660

PATCH Applied Anton Blanchard 2 participants 2 messages Mar 25, 2012 – Mar 31, 2012

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Big endian fix for iso9660

2012-03-26 Anton Blanchard <[email protected]>

* grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Do not byteswap 8 bit values.

grub-core/fs/iso9660.c +1 -1
Index: grub/grub-core/fs/iso9660.c
===================================================================
@@ -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)
#1 lore raw
Quoted 4 lines · Anton Blanchard

2012-03-26 Anton Blanchard <[email protected]>

* grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Do not byteswap 8 bit values.

Applied, thanks.

Quoted 19 lines

Index: grub/grub-core/fs/iso9660.c
===================================================================

grub-core/fs/iso9660.c +1 -1
@@ -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)

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel

Signature · 2 lines
Regards
Vladimir 'φ-coder/phcoder' Serbinenko