Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(619)

Unified Diff: third_party/WebKit/Source/platform/network/ParsedContentType.cpp

Issue 2199493002: libFuzzer for blink::MHTMLParser (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed CR feedback from esprehn@. Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/platform/network/ParsedContentType.cpp
diff --git a/third_party/WebKit/Source/platform/network/ParsedContentType.cpp b/third_party/WebKit/Source/platform/network/ParsedContentType.cpp
index 764c6768e60f0943760bb3001eba238e635566c0..2428abc4c213a39ab91c407acd47208226aa7319 100644
--- a/third_party/WebKit/Source/platform/network/ParsedContentType.cpp
+++ b/third_party/WebKit/Source/platform/network/ParsedContentType.cpp
@@ -134,7 +134,7 @@ bool parseContentType(const String& contentType, ReceiverType& receiver)
unsigned contentTypeLength = contentType.length();
skipSpaces(contentType, index);
if (index >= contentTypeLength) {
- DLOG(ERROR) << "Invalid Content-Type string '" << contentType << "'";
+ DVLOG(1) << "Invalid Content-Type string '" << contentType << "'";
return false;
}
@@ -151,13 +151,13 @@ bool parseContentType(const String& contentType, ReceiverType& receiver)
skipSpaces(contentType, index);
SubstringRange keyRange = parseParameterPart(contentType, index);
if (!keyRange.second || index >= contentTypeLength) {
- DLOG(ERROR) << "Invalid Content-Type parameter name. (at " << index << ")";
+ DVLOG(1) << "Invalid Content-Type parameter name. (at " << index << ")";
return false;
}
// Should we tolerate spaces here?
if (contentType[index++] != '=' || index >= contentTypeLength) {
- DLOG(ERROR) << "Invalid Content-Type malformed parameter (at " << index << ").";
+ DVLOG(1) << "Invalid Content-Type malformed parameter (at " << index << ").";
return false;
}
@@ -165,13 +165,13 @@ bool parseContentType(const String& contentType, ReceiverType& receiver)
SubstringRange valueRange = parseParameterPart(contentType, index);
if (!valueRange.second) {
- DLOG(ERROR) << "Invalid Content-Type, invalid parameter value (at " << index << ", for '" << substringForRange(contentType, keyRange).stripWhiteSpace() << "').";
+ DVLOG(1) << "Invalid Content-Type, invalid parameter value (at " << index << ", for '" << substringForRange(contentType, keyRange).stripWhiteSpace() << "').";
return false;
}
// Should we tolerate spaces here?
if (index < contentTypeLength && contentType[index++] != ';') {
- DLOG(ERROR) << "Invalid Content-Type, invalid character at the end of key/value parameter (at " << index << ").";
+ DVLOG(1) << "Invalid Content-Type, invalid character at the end of key/value parameter (at " << index << ").";
return false;
}
« no previous file with comments | « third_party/WebKit/Source/platform/mhtml/MHTMLParser.cpp ('k') | third_party/WebKit/Source/platform/testing/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698