DescriptionFix crash on incorrectly formatted MHTML documents
On incorrectly formatted MHTML documents, MHTMLArchive::create() can return
null or a MHTMLArchive object whose main resource is null. We had a release
assertion to make sure MHTMLArchive::create() does not return null and no
null check for the main resource. This was causing us to crash in both cases.
This patch adds both null checks and handles them nicely.
This patch is based on initial work from Laszlo Gombos <l.gombos@samsung.com>.
R=japhet@chromium.org
BUG=331898
TEST=mhtml/invalid-bad-boundary.mht
TEST=mhtml/invalid-bad-boundary2.mht
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=164584
Patch Set 1 #
Total comments: 2
Patch Set 2 : Take feedback into consideration #Patch Set 3 : Fix bad previous patchset #Patch Set 4 : Again #Patch Set 5 : Again #Patch Set 6 : Reupload #Patch Set 7 : Rebase #
Messages
Total messages: 7 (0 generated)
|