mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-21 06:49:35 +00:00
* grub-core/fs/ufs.c (grub_ufs_dir): Stop if direntlen is 0 to avoid
infinite loop on corrupted FS.
This commit is contained in:
1 parent
e77a16ca02
commit
cc1ce5f9b4
2 files changed
+8
No files matched your search
@@ -664,6 +664,9 @@ grub_ufs_dir (grub_device_t device, const char *path,
|
||||
(char *) &dirent) < 0)
|
||||
break;
|
||||
|
||||
if (dirent.direntlen == 0)
|
||||
break;
|
||||
|
||||
#ifdef MODE_UFS2
|
||||
namelen = dirent.namelen_bsd;
|
||||
#else
|
||||
|
||||
Reference in new issue
Block a user