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

Unified Diff: Source/web/tests/MHTMLTest.cpp

Issue 1184863003: Make ASAN happy in MHTMLTest.TestMHTMLEncoding (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 6 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/web/tests/MHTMLTest.cpp
diff --git a/Source/web/tests/MHTMLTest.cpp b/Source/web/tests/MHTMLTest.cpp
index 4fbd4380e7f807ccfcb77d5fcbc0374878e6bf4c..b15370df36331c7147b381ac63667d2443da5e1d 100644
--- a/Source/web/tests/MHTMLTest.cpp
+++ b/Source/web/tests/MHTMLTest.cpp
@@ -185,7 +185,7 @@ TEST_F(MHTMLTest, TestMHTMLEncoding)
RefPtr<SharedBuffer> data = serialize("Test Serialization", "text/html", MHTMLArchive::UseDefaultEncoding);
// Read the MHTML data line per line and do some pseudo-parsing to make sure the right encoding is used for the different sections.
- LineReader lineReader(std::string(data->data()));
+ LineReader lineReader(std::string(data->data(), data->size()));
int sectionCheckedCount = 0;
const char* expectedEncoding = 0;
std::string line;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698