Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F163241446
D42220.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
495 B
Referenced Files
None
Subscribers
None
D42220.id.diff
View Options
diff --git a/usr.sbin/bhyve/qemu_fwcfg.c b/usr.sbin/bhyve/qemu_fwcfg.c
--- a/usr.sbin/bhyve/qemu_fwcfg.c
+++ b/usr.sbin/bhyve/qemu_fwcfg.c
@@ -365,7 +365,7 @@
/* copy files above file_index to directory */
memcpy(&new_directory->files[file_index + 1],
&fwcfg_sc.directory->files[file_index],
- (count - file_index) * sizeof(struct qemu_fwcfg_file));
+ (count - file_index - 1) * sizeof(struct qemu_fwcfg_file));
/* free old directory */
free(fwcfg_sc.directory);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Jul 22, 8:36 AM (16 h, 25 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
35356950
Default Alt Text
D42220.id.diff (495 B)
Attached To
Mode
D42220: bhyve: fix buffer overflow in QemuFwCfg
Attached
Detach File
Event Timeline
Log In to Comment