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

Unified Diff: pdf/pdfium/pdfium_engine.cc

Issue 858443002: Remove DCHECK which causes crash in PDFs with email attachments. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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
« 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: pdf/pdfium/pdfium_engine.cc
diff --git a/pdf/pdfium/pdfium_engine.cc b/pdf/pdfium/pdfium_engine.cc
index 87f8d65dc90e3a09695495146564febe52b6ce6c..f390e30f02589d0f4a98f55887de965b44487e98 100644
--- a/pdf/pdfium/pdfium_engine.cc
+++ b/pdf/pdfium/pdfium_engine.cc
@@ -3615,7 +3615,8 @@ void PDFiumEngine::Form_Mail(IPDF_JSPLATFORM* param,
FPDF_WIDESTRING cc,
FPDF_WIDESTRING bcc,
FPDF_WIDESTRING message) {
- DCHECK(length == 0); // Don't handle attachments; no way with mailto.
+ // Note: |mail_data| and |length| are ignored. We don't handle attachments;
+ // there is no way with mailto.
std::string to_str =
base::UTF16ToUTF8(reinterpret_cast<const base::char16*>(to));
std::string cc_str =
« 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