From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1Mz8EZ-0003F0-Gi for mharc-grub-devel@gnu.org; Sat, 17 Oct 2009 08:18:07 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Mz8EX-0003Ek-Hk for grub-devel@gnu.org; Sat, 17 Oct 2009 08:18:05 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Mz8ES-0003EA-3V for grub-devel@gnu.org; Sat, 17 Oct 2009 08:18:04 -0400 Received: from [199.232.76.173] (port=52671 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mz8ER-0003E7-Uo for grub-devel@gnu.org; Sat, 17 Oct 2009 08:17:59 -0400 Received: from mailhub.sw.ru ([195.214.232.25]:47300 helo=relay.sw.ru) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Mz8ER-0004RB-EC for grub-devel@gnu.org; Sat, 17 Oct 2009 08:17:59 -0400 Received: from [10.30.3.27] ([10.30.3.27]) by relay.sw.ru (8.13.4/8.13.4) with ESMTP id n9HCHq6b007156; Sat, 17 Oct 2009 16:17:56 +0400 (MSD) Message-ID: <4AD9B5F0.40304@parallels.com> Date: Sat, 17 Oct 2009 16:17:52 +0400 From: Vasily Averin User-Agent: Thunderbird 1.5.0.10 (X11/20060911) MIME-Version: 1.0 To: grub-devel@gnu.org X-Enigmail-Version: 0.94.2.0 Content-Type: multipart/mixed; boundary="------------040903040606010605080206" X-detected-operating-system: by monty-python.gnu.org: OpenBSD 3.0-3.9 Cc: phcoder@gmail.com Subject: [patch] deadloop in grub_ext2_iterate_dir 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: Sat, 17 Oct 2009 12:18:05 -0000 This is a multi-part message in MIME format. --------------040903040606010605080206 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit fix for deadloop in grub_ext2_iterate_dir: fpos is not updated if dirent.direntlen == 0 Signed-off-by: Vasily Averin --------------040903040606010605080206 Content-Type: text/plain; name="diff-grub2-ext2_readdir-20091017" Content-Transfer-Encoding: base64 Content-Disposition: inline; filename="diff-grub2-ext2_readdir-20091017" ZGlmZiAtdXAgLi9mcy9leHQyLmMuZTJyZHIgLi9mcy9leHQyLmMKLS0tIC4vZnMvZXh0Mi5j LmUycmRyCTIwMDktMDctMTkgMTc6NTk6MjEuMDAwMDAwMDAwICswNDAwCisrKyAuL2ZzL2V4 dDIuYwkyMDA5LTEwLTE3IDE1OjI4OjExLjAwMDAwMDAwMCArMDQwMApAQCAtNjQ5LDYgKzY0 OSw5IEBAIGdydWJfZXh0Ml9pdGVyYXRlX2RpciAoZ3J1Yl9mc2hlbHBfbm9kZV8KICAgICAg IGlmIChncnViX2Vycm5vKQogCXJldHVybiAwOwogCisgICAgICBpZiAoZ3J1Yl9sZV90b19j cHUxNiAoZGlyZW50LmRpcmVudGxlbikgPT0gMCkKKyAgICAgICAgcmV0dXJuIDA7CisKICAg ICAgIGlmIChkaXJlbnQubmFtZWxlbiAhPSAwKQogCXsKIAkgIGNoYXIgZmlsZW5hbWVbZGly ZW50Lm5hbWVsZW4gKyAxXTsK --------------040903040606010605080206--