Page MenuHomeFreeBSD

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.
ClosedPublic

Authored by imp on Jan 15 2018, 5:03 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Feb 17, 3:57 AM
Unknown Object (File)
Tue, Feb 11, 10:06 PM
Unknown Object (File)
Sat, Feb 8, 4:58 PM
Unknown Object (File)
Sat, Feb 8, 9:36 AM
Unknown Object (File)
Sat, Jan 25, 7:28 PM
Unknown Object (File)
Fri, Jan 24, 6:54 PM
Unknown Object (File)
Jan 13 2025, 5:23 PM
Unknown Object (File)
Dec 30 2024, 9:25 AM
Subscribers
None

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

stand/efi/boot1/boot1.c
105 โ†—(On Diff #37976)

If we check the return value below, we do not need to set NULL here, except if the compiler will trigger may be used uninitialized warning...

stand/efi/boot1/boot1.c
105 โ†—(On Diff #37976)

We do, because we want utf8_to_ucs2 to allocate space.

This revision was not accepted when it landed; it landed in state Needs Review.Jan 15 2018, 10:17 PM
This revision was automatically updated to reflect the committed changes.