Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F167106694
D13918.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
477 B
Referenced Files
None
Subscribers
None
D13918.diff
View Options
Index: head/stand/efi/boot1/boot1.c
===================================================================
--- head/stand/efi/boot1/boot1.c
+++ head/stand/efi/boot1/boot1.c
@@ -106,8 +106,7 @@
size_t len;
EFI_STATUS rv;
- utf8_to_ucs2(varname, &var, &len);
- if (var == NULL)
+ if (utf8_to_ucs2(varname, &var, &len) != 0)
return (EFI_OUT_OF_RESOURCES);
rv = RS->SetVariable(var, &FreeBSDBootVarGUID,
EFI_VARIABLE_BOOTSERVICE_ACCESS | EFI_VARIABLE_RUNTIME_ACCESS,
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Aug 20, 3:38 AM (5 h, 1 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
36958378
Default Alt Text
D13918.diff (477 B)
Attached To
Mode
D13918: Check the return value from utf8_to_ucs2 instead of whether or not uv is NULL. That's more correct and doesn't depend on the error behavior of utf8_to_ucs2. In practice, we'll never see this though since we pass utf8_to_ucs2 a well formed string.
Attached
Detach File
Event Timeline
Log In to Comment