Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F106105982
D12269.id32769.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
776 B
Referenced Files
None
Subscribers
None
D12269.id32769.diff
View Options
Index: sbin/geom/class/virstor/geom_virstor.c
===================================================================
--- sbin/geom/class/virstor/geom_virstor.c
+++ sbin/geom/class/virstor/geom_virstor.c
@@ -183,6 +183,7 @@
goto out;
}
bcopy(md, sector, size);
+ bzero(sector + size, sectorsize - size);
if (pwrite(fd, sector, sectorsize, mediasize - sectorsize) !=
(ssize_t)sectorsize) {
error = errno;
Index: sbin/geom/misc/subr.c
===================================================================
--- sbin/geom/misc/subr.c
+++ sbin/geom/misc/subr.c
@@ -302,6 +302,7 @@
goto out;
}
bcopy(md, sector, size);
+ bzero(sector + size, sectorsize - size);
if (pwrite(fd, sector, sectorsize, mediasize - sectorsize) !=
sectorsize) {
error = errno;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Dec 26, 12:12 PM (11 h, 58 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15604597
Default Alt Text
D12269.id32769.diff (776 B)
Attached To
Mode
D12269: Audit userspace geom code for leaking memory to disk
Attached
Detach File
Event Timeline
Log In to Comment