DescriptionFix a renderer crash while processing FTP directory listing.
The problem was caused by a broken assumption about current_parser_.
After adding OnEndOfInput to FtpDirectoryListingParser interface,
it was possible that during processing of input we ended up
with just one parser, which returned error when OnEndOfInput was called.
In that case, we should just reset current_parser_ to NULL to avoid
a use-after-free error.
TEST=net_unittests
BUG=47528
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=50930
Patch Set 1 #
Total comments: 9
Messages
Total messages: 7 (0 generated)
|