Verified Commit 9b43e8c3 authored by valenting's avatar valenting Committed by ma1
Browse files

Bug 2064026 - Check if iterator has reached the end of the string a=dmeehan DONTBUILD

parent 391cac95
Loading
Loading
Loading
Loading
+4 −2
Changes for dom/base/MimeType.cpp: 4 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -111,8 +111,10 @@ template <typename char_type>
      ++pos;
    }

    // Might as well check for base64 now
    if (*pos != '=') {
    // Might as well check for base64 now. Note that the loop above may have
    // stopped because it reached the end of the input, in which case there is
    // no code point to look at.
    if (pos == end || *pos != '=') {
      // trim leading and trailing spaces
      while (namePos < pos && NS_IsHTTPWhitespace(*namePos)) {
        ++namePos;