[2649] 2009-10-25 Robert Millan <[email protected]>

Robert Millan <[email protected]> Sat, 24 Oct 2009 23:36:02 +0000
Newsgroups gmane.comp.boot-loaders.grub.cvs
Message-ID <[email protected]>
Revision: 2649
          http://svn.sv.gnu.org/viewvc/?view=rev&root=grub&revision=2649
Author:   robertmh
Date:     2009-10-24 23:36:00 +0000 (Sat, 24 Oct 2009)
Log Message:
-----------
2009-10-25  Robert Millan  <[email protected]>
2009-10-25  Vasily Averin  <[email protected]>

        * fs/ext2.c (grub_ext2_iterate_dir): Avoid infinite loop when
        `dirent.direntlen == 0'.

Modified Paths:
--------------
    trunk/grub2/ChangeLog
    trunk/grub2/fs/ext2.c

Property Changed:
----------------
    trunk/grub2/


Property changes on: trunk/grub2
___________________________________________________________________
Modified: bzr:revision-info
   - timestamp: 2009-10-25 01:27:46.312000036 +0200
committer: Robert Millan <[email protected]>
properties: 
	branch-nick: tmp

   + timestamp: 2009-10-25 01:35:02.167000055 +0200
committer: Robert Millan <[email protected]>
properties: 
	branch-nick: tmp

Modified: bzr:revision-id:v3-single1-dHJ1bmsvZ3J1YjI.
   - 1769 [email protected]
1770 [email protected]
1771 [email protected]
1772 [email protected]
1773 [email protected]

   + 1769 [email protected]
1770 [email protected]
1771 [email protected]
1772 [email protected]
1773 [email protected]
1774 [email protected]


Modified: trunk/grub2/ChangeLog
===================================================================
--- trunk/grub2/ChangeLog	2009-10-24 23:31:05 UTC (rev 2648)
+++ trunk/grub2/ChangeLog	2009-10-24 23:36:00 UTC (rev 2649)
@@ -1,5 +1,11 @@
 2009-10-25  Robert Millan  <[email protected]>
+2009-10-25  Vasily Averin  <[email protected]>
 
+	* fs/ext2.c (grub_ext2_iterate_dir): Avoid infinite loop when
+	`dirent.direntlen == 0'.
+
+2009-10-25  Robert Millan  <[email protected]>
+
 	* fs/cpio.c [MODE_USTAR]: Initialize `tar' module instead of
 	`cpio'.
 	[! MODE_USTAR]: Initialize `cpio' module instead of `tar'.

Modified: trunk/grub2/fs/ext2.c
===================================================================
--- trunk/grub2/fs/ext2.c	2009-10-24 23:31:05 UTC (rev 2648)
+++ trunk/grub2/fs/ext2.c	2009-10-24 23:36:00 UTC (rev 2649)
@@ -649,6 +649,9 @@
       if (grub_errno)
 	return 0;
 
+      if (dirent.direntlen == 0)
+        return 0;
+
       if (dirent.namelen != 0)
 	{
 	  char filename[dirent.namelen + 1];