Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F151232169
D2844.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
911 B
Referenced Files
None
Subscribers
None
D2844.id.diff
View Options
Index: stand/libsa/ufs.c
===================================================================
--- stand/libsa/ufs.c
+++ stand/libsa/ufs.c
@@ -879,6 +879,13 @@
if (error)
return (error);
dp = (struct direct *)buf;
+ /*
+ * Probable corrupt directory entry, bail out
+ * rather than spin forever and hope the user
+ * has other options.
+ */
+ if (dp->d_reclen == 0)
+ return (0);
fp->f_seekp += dp->d_reclen;
if (dp->d_ino == (ino_t)0)
goto again;
Index: stand/libsa/ufsread.c
===================================================================
--- stand/libsa/ufsread.c
+++ stand/libsa/ufsread.c
@@ -111,6 +111,13 @@
*ino = d.d_ino;
return d.d_type;
}
+ /*
+ * Probable corrupt directory entry, bail out
+ * rather than spin forever and hope the user
+ * has other options.
+ */
+ if (d.d_reclen == 0)
+ return 0;
s += d.d_reclen;
}
if (n != -1 && ls)
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Apr 8, 12:35 AM (1 h, 49 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
31059605
Default Alt Text
D2844.id.diff (911 B)
Attached To
Mode
D2844: Bail out of corrupt directory entries during boot
Attached
Detach File
Event Timeline
Log In to Comment