Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F163347476
D19220.id54019.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
449 B
Referenced Files
None
Subscribers
None
D19220.id54019.diff
View Options
Index: head/stand/libsa/zfs/zfs.c
===================================================================
--- head/stand/libsa/zfs/zfs.c
+++ head/stand/libsa/zfs/zfs.c
@@ -435,8 +435,8 @@
ret = EIO;
goto error;
}
- memcpy(outbuf, bouncebuf + head, secsz - head);
- outbuf += secsz - head;
+ memcpy(outbuf, bouncebuf + head, min(secsz - head, bytes));
+ outbuf += min(secsz - head, bytes);
}
/* Full data return from read sectors */
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Jul 23, 9:16 AM (3 h, 8 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
35397074
Default Alt Text
D19220.id54019.diff (449 B)
Attached To
Mode
D19220: Still a memory corruption bug in vdev_read in loader ZFS support
Attached
Detach File
Event Timeline
Log In to Comment