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

Unified Diff: LayoutTests/mhtml/invalid-bad-boundary2.mht

Issue 125403003: Fix crash on incorrectly formatted MHTML documents (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase Created 6 years, 11 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: LayoutTests/mhtml/invalid-bad-boundary2.mht
diff --git a/LayoutTests/mhtml/invalid-bad-boundary2.mht b/LayoutTests/mhtml/invalid-bad-boundary2.mht
new file mode 100644
index 0000000000000000000000000000000000000000..fd9d657fa7deebb9878ff9249d0814dd47801098
--- /dev/null
+++ b/LayoutTests/mhtml/invalid-bad-boundary2.mht
@@ -0,0 +1,41 @@
+From: <Saved by UnMHT Ver.6.3.3 with manual conversion of first part into binary encoding>
+Subject: MHTML Tests
+Date: Wed, 14 Aug 2013 11:21:04 +0200
+MIME-Version: 1.0
+Content-Type: multipart/related;
+ boundary="----=_Part_ADD9911_9D32DCC.1376472064834";
+ type="text/html"
+
+-----=_Part_ADD9911_9D32DCC.1376472064834
+Content-Location: http://localhost/content_transfer_encoding_none.html
+Content-Type: text/html;
+ charset="UTF-8"
+
+<!DOCTYPE html>
+<html lang='en'>
+ <head>
+ <title>MHTML Content-Transfer-Encoding none test</title>
+ <script>
+ if (window.testRunner)
+ testRunner.dumpAsText();
+ </script>
+ </head>
+ <body>
+ This is a red square:<br>
+ <img src="resources/red_square.png" onerror="document.getElementById('error').innerHTML+='Failed to load image!'">
+ <div id="error"></div>
+ </body>
+</html>
+
+------=_Part_ADD9911_9D32DCC.1376472064834
+Content-Location: http://localhost/resources/red_square.png
+Content-Transfer-Encoding: base64
+Content-Type: image/png
+
+iVBORw0KGgoAAAANSUhEUgAAAB4AAAAeCAYAAAA7MK6iAAAAAXNSR0IArs4c6QAAAARnQU1BAACx
+jwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAACESURBVEhL7ZYxDoAwCEXB2LGTo46ewXj/zXgV
+PQKgexP/Ai6l889/6Stp4HtZjYKOiRCpEpfSEIYgJqxNMFTkFUjVXiZhT6qGirwCqdrLJOxJ1VCR
+V6A/1XxNc9jqQ6JkpjTU2rwQR+5c4769YCM5zn/BX4PY33Dljb0+JtiTqqEir8ADWEIY6dz7d1cA
+AAAASUVORK5CYII=
+
+------=_Part_ADD9911_9D32DCC.1376472064834--
« no previous file with comments | « LayoutTests/mhtml/invalid-bad-boundary-expected.txt ('k') | LayoutTests/mhtml/invalid-bad-boundary2-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698