Bug 1352926 - Make sure to check the right character for being semicolon or comma. r=farre, a=dveditz
authorBoris Zbarsky <bzbarsky@mit.edu>
Tue, 04 Apr 2017 16:24:46 -0400
changeset 395712 82a45421cc3595c4756985814b4eba57470a8ac9
parent 395711 5a4c8c4ec6cff80e1cc65096458feef8474c1fa7
child 395713 9d164f1dc3c2eac75e31c57aa294b5a4d1b0030a
push id1468
push userasasaki@mozilla.com
push dateMon, 05 Jun 2017 19:31:07 +0000
treeherdermozilla-release@0641fc6ee9d1 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersfarre, dveditz
bugs1352926
milestone54.0a2
Bug 1352926 - Make sure to check the right character for being semicolon or comma. r=farre, a=dveditz MozReview-Commit-ID: DOb1qYb8Tz4
dom/base/nsContentSink.cpp
--- a/dom/base/nsContentSink.cpp
+++ b/dom/base/nsContentSink.cpp
@@ -532,17 +532,17 @@ nsContentSink::ProcessLinkHeader(const n
             *(++end) = kNullCh;
 
             ch = *(end + 1);
 
             // keep going until semi or comma
             while (ch != kNullCh && ch != kSemicolon && ch != kComma) {
               ++end;
 
-              ch = *end;
+              ch = *(end + 1);
             }
           }
         }
       }
 
       ++end;
       ++last;
     }