Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F144504630
D19220.1775086210.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
449 B
Referenced Files
None
Subscribers
None
D19220.1775086210.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
Wed, Apr 1, 11:30 PM (10 h, 58 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
28240515
Default Alt Text
D19220.1775086210.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