Don't leave a discarded SharedBuffer on Resource
If a SharedBuffer was unlocked and the OS then purged the backing DiscardableMemory, we will evict the Resource from MemoryCache. However, before doing so, we will give inspector a chance to copy the data. In the case where the buffer was purged, InspectorPageAgent may improperly handle the buffer given its state. In that case, clear the buffer so there is no opportunity for the inspector to misuse it. BUG=594117 TEST=ResourceTest.LockFailureNoCrash Review URL: https://codereview.chromium.org/1802313003 Cr-Commit-Position: refs/heads/master@{#381732}
Showing
Please register or sign in to comment