Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c1109ae2 authored by Nick Kralevich's avatar Nick Kralevich Committed by android-build-merger
Browse files

Merge "entry_name_utils-inl.h: clear top bit before shifting" am: a7247763 am: a5ff3e12

am: 15d1c2ec

Change-Id: I34998ad0a29161043574570a0e0c7a9ee8bebad3
parents c7e89502 15d1c2ec
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -35,7 +35,7 @@ inline bool IsValidEntryName(const uint8_t* entry_name, const size_t length) {
      return false;
    } else {
      // 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;

        // Missing continuation byte..