• Kenichi Ishibashi's avatar
    Cancel multipart image parser when decoding failed · 510ff8e4
    Kenichi Ishibashi authored
    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: default avatarYutaka Hirano <yhirano@chromium.org>
    Commit-Queue: Kenichi Ishibashi <bashi@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#537689}
    510ff8e4
invalid-multipart-image.html 582 Bytes