commit | 8508e37deeb291f92d28a9bff2df77cabdc29ddf | [log] [tgz] |
---|---|---|
author | Narayan Kamath <narayan@google.com> | Wed May 06 14:55:43 2015 +0100 |
committer | Narayan Kamath <narayan@google.com> | Thu May 07 13:33:13 2015 +0100 |
tree | cad2b501e3bf8ca2c6f784f4fc69fff6f8b1e7ac | |
parent | f07f71f9af8f56e738ef0451c60734ec6022d08e [diff] |
Fix broken checks in IsValidPartOfMemberNameUtf8Slow. GetUtf16FromUtf8 returns a surrogate pair only if it encounters a 4-byte UTF sequence. Three byte UTF sequences will only return the first or second half of a pair so we need to check for that explicitly. bug: 20844537 (cherry picked from commit 3ba8671d60061359fd833f60f7a9dca14878cc0b) Change-Id: I2e2a4f9f736cd11050a2b634b3bb27b75a0ee0ba