Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F145914429
D30050.id88472.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
600 B
Referenced Files
None
Subscribers
None
D30050.id88472.diff
View Options
Index: usr.sbin/bhyve/smbiostbl.c
===================================================================
--- usr.sbin/bhyve/smbiostbl.c
+++ usr.sbin/bhyve/smbiostbl.c
@@ -38,6 +38,7 @@
#include <string.h>
#include <unistd.h>
#include <uuid.h>
+#include <stdlib.h>
#include <machine/vmm.h>
#include <vmmapi.h>
@@ -598,8 +599,10 @@
uint32_t status;
uuid_from_string(guest_uuid_str, &uuid, &status);
- if (status != uuid_s_ok)
- return (-1);
+ if (status != uuid_s_ok) {
+ fprintf(stderr, "Invalid UUID provided\n");
+ exit(4);
+ }
uuid_enc_le(&type1->uuid, &uuid);
} else {
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Feb 27, 3:11 AM (9 h, 44 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
29011848
Default Alt Text
D30050.id88472.diff (600 B)
Attached To
Mode
D30050: Adds uuid validation to bhyve(8) arg parsing
Attached
Detach File
Event Timeline
Log In to Comment