Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F115644456
D50035.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D50035.id.diff
View Options
diff --git a/lib/libefivar/efivar.c b/lib/libefivar/efivar.c
--- a/lib/libefivar/efivar.c
+++ b/lib/libefivar/efivar.c
@@ -172,7 +172,7 @@
rv = utf8_to_ucs2(name, &var.name, &var.namesize);
if (rv != 0)
goto errout;
- var.vendor = guid;
+ memcpy(&var.vendor, &guid, sizeof(guid));
var.data = buf;
var.datasize = sizeof(buf);
rv = ioctl(efi_fd, EFIIOC_VAR_GET, &var);
@@ -240,7 +240,7 @@
rv = utf8_to_ucs2(*name, &var.name, &size);
if (rv != 0)
goto errout;
- var.vendor = **guid;
+ memcpy(&var.vendor, *guid, sizeof(**guid));
}
rv = ioctl(efi_fd, EFIIOC_VAR_NEXT, &var);
if (rv == 0 && var.name == NULL) {
@@ -266,7 +266,7 @@
rv = ucs2_to_utf8(var.name, name);
if (rv != 0)
goto errout;
- retguid = var.vendor;
+ memcpy(&retguid, &var.vendor, sizeof(retguid));
*guid = &retguid;
}
errout:
@@ -363,7 +363,7 @@
rv = utf8_to_ucs2(name, &var.name, &var.namesize);
if (rv != 0)
goto errout;
- var.vendor = guid;
+ memcpy(&var.vendor, &guid, sizeof(guid));
var.data = data;
var.datasize = data_size;
var.attrib = attributes;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Apr 27, 11:44 AM (14 h, 16 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
17808233
Default Alt Text
D50035.id.diff (1 KB)
Attached To
Mode
D50035: efivar: Allow uuid_t and efi_guid_t to be different types.
Attached
Detach File
Event Timeline
Log In to Comment