Cancel multipart image parser when decoding failed
Before this CL we didn't stop appending data for mulitpart images even after there was an decode error. This doesn't align the assumption the base class has. The base class, Resource, doesn't expect calling AppendData() when there was an error. We should cancel the parser when there is a decode error so that we don't append data after the error. Bug: 813485 Change-Id: I40112e11bf1d7d1c84e2794c81bbaf178207496f Reviewed-on: https://chromium-review.googlesource.com/923668Reviewed-by:Yutaka Hirano <yhirano@chromium.org> Commit-Queue: Kenichi Ishibashi <bashi@chromium.org> Cr-Commit-Position: refs/heads/master@{#537689}
Showing
Please register or sign in to comment