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

Unified Diff: net/ftp/ftp_directory_listing_buffer.cc

Issue 2846037: Fix a renderer crash while processing FTP directory listing. (Closed)
Patch Set: Created 10 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
Index: net/ftp/ftp_directory_listing_buffer.cc
diff --git a/net/ftp/ftp_directory_listing_buffer.cc b/net/ftp/ftp_directory_listing_buffer.cc
index 41daeb45048976c0592f36f92760de8daaa19c43..8399f131ab8a94197b9c784a3c00a548c08dc428 100644
--- a/net/ftp/ftp_directory_listing_buffer.cc
+++ b/net/ftp/ftp_directory_listing_buffer.cc
@@ -149,7 +149,7 @@ int FtpDirectoryListingBuffer::OnEndOfInput() {
}
if (parsers_.size() != 1) {
- DCHECK(!current_parser_);
+ current_parser_ = NULL;
// We may hit an ambiguity in case of listings which have no entries. That's
// fine, as long as all remaining parsers agree that the listing is empty.

Powered by Google App Engine
This is Rietveld 408576698