Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F110765565
D14163.id38798.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
538 B
Referenced Files
None
Subscribers
None
D14163.id38798.diff
View Options
Index: sbin/fsck_ffs/inode.c
===================================================================
--- sbin/fsck_ffs/inode.c
+++ sbin/fsck_ffs/inode.c
@@ -453,8 +453,10 @@
if (howmany(DIP(dp, di_size), sblock.fs_bsize) > UFS_NDADDR)
blks = UFS_NDADDR + UFS_NIADDR;
+ else if (DIP(dp, di_size) > 0)
+ blks = howmany(DIP(dp, di_size), sblock.fs_bsize);
else
- blks = howmany(DIP(dp, di_size), sblock.fs_bsize);
+ blks = 1;
inp = (struct inoinfo *)
Malloc(sizeof(*inp) + (blks - 1) * sizeof(ufs2_daddr_t));
if (inp == NULL)
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Feb 23, 8:18 PM (10 h, 22 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16804760
Default Alt Text
D14163.id38798.diff (538 B)
Attached To
Mode
D14163: Fix a read past the end of a buffer in fsck.
Attached
Detach File
Event Timeline
Log In to Comment