Fix potential UAF in Session Storage
This was fixed for StorageAreaImpl usage in the Local Storage implementation, but Session Storage was overlooked. It turns out that Session Storage namespaces also own StorageAreaImpl objects, and these too can outlive their backing database. This ensures that the map of namespaces is cleared before SessionStorageImpl resets its database, avoiding the UAF. Bug: 1152800 Change-Id: I946841b20fa73754e8b8ac611b352db0319ce4d0 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2617239 Commit-Queue: Ken Rockot <rockot@google.com> Commit-Queue: Victor Costan <pwnall@chromium.org> Reviewed-by:Victor Costan <pwnall@chromium.org> Cr-Commit-Position: refs/heads/master@{#841363}
Showing
Please register or sign in to comment