Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F178366862
D59379.1796590547.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
705 B
Referenced Files
None
Subscribers
None
D59379.1796590547.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, Dec 6, 8:55 PM (6 h, 47 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
42265525
Default Alt Text
D59379.1796590547.diff (705 B)
Attached To
Mode
D59379: stand: check for short reads in ufs
Attached
Detach File
Event Timeline