HomeFreeBSD

When only 2 bytes can be read from a 4 byte UTF-16 character in a base64

Description

When only 2 bytes can be read from a 4 byte UTF-16 character in a base64
encoded chunk of a UTF-7 string, treat that as an incomplete character and
return an error instead of a shift sequence and no error.

Also check that the low 2 bytes have a valid value.

MFC after: 1 week

Details

Provenance
tijlAuthored on
Parents
rS283417: Add 64 bit support to the vdso.
Branches
Unknown
Tags
Unknown