Fix booting on some arm64 systems after r327879 by fixing the call to
utf8_to_ucs2 in boot1.efi. We need to initialise the ucs2 output string
so it will allocate space, and use the return value to determine if the
call was successful.
Details
Details
Diff Detail
Diff Detail
- Repository
- rS FreeBSD src repository - subversion
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
stand/efi/boot1/boot1.c | ||
---|---|---|
93 ↗ | (On Diff #37968) | It's allocated at the start of utf8_to_ucs2. I don't see where it's then set to NULL. |
109–111 ↗ | (On Diff #37968) | That also looks wrong, however as utf8_to_ucs2 only seems to fail when the input string is bad I think the error case in either function is unlikely. |
Comment Actions
See also https://reviews.freebsd.org/D13917, but I think checking the return values is better in both places.