Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F171657881
D59379.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
705 B
Referenced Files
None
Subscribers
None
D59379.id.diff
View Options
diff --git a/stand/libsa/ufs.c b/stand/libsa/ufs.c
--- a/stand/libsa/ufs.c
+++ b/stand/libsa/ufs.c
@@ -365,6 +365,8 @@
block_size, fp->f_buf, &fp->f_buf_size);
if (rc)
return (rc);
+ if (fp->f_buf_size != block_size)
+ return (EIO);
fp->f_buf_blkno = file_block;
}
@@ -422,6 +424,8 @@
block_size, fp->f_buf, &fp->f_buf_size);
if (rc)
return (rc);
+ if (fp->f_buf_size != block_size)
+ return (EIO);
}
fp->f_buf_blkno = file_block;
@@ -665,6 +669,10 @@
fs->fs_bsize, buf, &buf_size);
if (rc)
goto out;
+ if (buf_size != fs->fs_bsize) {
+ rc = EIO;
+ goto out;
+ }
bcopy((char *)buf, namebuf, (unsigned)link_len);
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Sep 13, 12:04 PM (6 h, 22 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
38283543
Default Alt Text
D59379.id.diff (705 B)
Attached To
Mode
D59379: stand: check for short reads in ufs
Attached
Detach File
Event Timeline
Log In to Comment