• Rouslan Solomakhin's avatar
    [Web Payment] Cancel pending database operations. · 9244d6d8
    Rouslan Solomakhin authored
    Before this patch, payment credential storage and retrieval did not
    cancel database operations when secure payment confirmation was being
    torn down, so the database operation callbacks could use secure payment
    confirmation code path after free.
    
    This patch cancels the payment credential storage and retrieval
    operations during the tear down.
    
    After this patch, there is no use-after-free errors when a database
    operation is in flight during secure payment confirmation tear down.
    
    Bug: 1136078
    Change-Id: I2a02089f4ab5c3c8ae5ebed91304b11e1c1eaf36
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2518924Reviewed-by: default avatarNick Burris <nburris@chromium.org>
    Commit-Queue: Rouslan Solomakhin <rouslan@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#824186}
    9244d6d8
payment_credential.h 3.09 KB