Fix heap-use-after-free at reading list deletion on Android.
Inside RmoveEntryByURLImpl, ReadingListWillRemoveEntry invokes ReadingListManagerImpl::RemoveBookmark. The method removes the node which own the URL. So when invoking entries_-erase(url), url is not available. BookmarkBridge: :DeleteBookmark deletes a reading list item b using url when the bookmark type is BOOKMARK_TYPE_READING_LIST (i.e. node->url()). The deletion invokes ReadingListModelImpl::RemoveEntryByURLImpl with the URL (as const GURL&). Change-Id: I69d6afba8ca8ea72985dd2317db9f6a3a92fefc5 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2616641 Commit-Queue: Takashi Sakamoto <tasak@google.com> Reviewed-by:Olivier Robin <olivierrobin@chromium.org> Reviewed-by:
Bartek Nowierski <bartekn@chromium.org> Reviewed-by:
Xing Liu <xingliu@chromium.org> Reviewed-by:
Theresa <twellington@chromium.org> Reviewed-by:
Shakti Sahu <shaktisahu@chromium.org> Cr-Commit-Position: refs/heads/master@{#842951}
Showing
Please register or sign in to comment