Re: [tip:x86/urgent] lib/ucs2_string: Correct ucs2 -> utf8 conversion

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 02/17/2016 10:04 AM, Laszlo Ersek wrote:
>>
>> I also believe there is no such thing as a "ucs2 string".  This code will procedure invalid utf8 if utf16 surrogates are present; this is how the abortion called cesu8 ended up happening.
> 
> I raised the same concern; please see the sub-thread at:
> 
> http://thread.gmane.org/gmane.linux.kernel.efi/7366/focus=7493
> 
> If I understand correctly, the decision was that the caller would be
> responsible for not passing in surrogates.
> 

The "caller" here is the UEFI variables storage.  What do you do if a
variable contains them?  Refuse to represent them?  Not a real option.

	-hpa


--
To unsubscribe from this list: send the line "unsubscribe linux-tip-commits" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Stable Commits]     [Linux Stable Kernel]     [Linux Kernel]     [Linux USB Devel]     [Linux Video &Media]     [Linux Audio Users]     [Yosemite News]     [Linux SCSI]

  Powered by Linux