Merge "entry_name_utils-inl.h: clear top bit before shifting"
am: a72477630d
Change-Id: I6d61bee38676e1f55cd3593b2186b9f1bc4dc6e0
This commit is contained in:
commit
a5ff3e1276
1 changed files with 1 additions and 1 deletions
|
|
@ -35,7 +35,7 @@ inline bool IsValidEntryName(const uint8_t* entry_name, const size_t length) {
|
||||||
return false;
|
return false;
|
||||||
} else {
|
} else {
|
||||||
// 2-5 byte sequences.
|
// 2-5 byte sequences.
|
||||||
for (uint8_t first = byte << 1; first & 0x80; first <<= 1) {
|
for (uint8_t first = (byte & 0x7f) << 1; first & 0x80; first = (first & 0x7f) << 1) {
|
||||||
++i;
|
++i;
|
||||||
|
|
||||||
// Missing continuation byte..
|
// Missing continuation byte..
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue