Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F137893774
D30050.id88778.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
751 B
Referenced Files
None
Subscribers
None
D30050.id88778.diff
View Options
Index: usr.sbin/bhyve/bhyverun.c
===================================================================
--- usr.sbin/bhyve/bhyverun.c
+++ usr.sbin/bhyve/bhyverun.c
@@ -1373,7 +1373,8 @@
}
error = smbios_build(ctx);
- assert(error == 0);
+ if (error)
+ exit(4);
if (acpi) {
error = acpi_build(ctx, guest_ncpus);
Index: usr.sbin/bhyve/smbiostbl.c
===================================================================
--- usr.sbin/bhyve/smbiostbl.c
+++ usr.sbin/bhyve/smbiostbl.c
@@ -598,8 +598,10 @@
uint32_t status;
uuid_from_string(guest_uuid_str, &uuid, &status);
- if (status != uuid_s_ok)
+ if (status != uuid_s_ok) {
+ fprintf(stderr, "Invalid UUID\n");
return (-1);
+ }
uuid_enc_le(&type1->uuid, &uuid);
} else {
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Nov 27, 11:25 PM (8 h, 37 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
26266110
Default Alt Text
D30050.id88778.diff (751 B)
Attached To
Mode
D30050: Adds uuid validation to bhyve(8) arg parsing
Attached
Detach File
Event Timeline
Log In to Comment