Index: third_party/WebKit/Source/platform/text/DecodeEscapeSequences.h |
diff --git a/third_party/WebKit/Source/platform/text/DecodeEscapeSequences.h b/third_party/WebKit/Source/platform/text/DecodeEscapeSequences.h |
index 4cd555b66e25f6eb23ecb8e6f1ac075e00b03be6..ee9fcc13e1e44b8b36e8f7da89ace7d69ac92ab1 100644 |
--- a/third_party/WebKit/Source/platform/text/DecodeEscapeSequences.h |
+++ b/third_party/WebKit/Source/platform/text/DecodeEscapeSequences.h |
@@ -139,8 +139,8 @@ struct URLEscapeSequence { |
run += 1; |
} |
} |
- ASSERT( |
- buffer.size() >= |
+ DCHECK_GE( |
+ buffer.size(), |
static_cast<size_t>(p - buffer.Data())); // Prove buffer not overrun. |
return (encoding.IsValid() ? encoding : UTF8Encoding()) |
.Decode(buffer.Data(), p - buffer.Data()); |