DescriptionFixed use-after-free in LoadCallback in bookmark_storage.cc
Note: this is a reland of https://codereview.chromium.org/373153002/
after plugging a memory leak.
BookmarkStorage isn't ref counted anymore since
https://codereview.chromium.org/370323002, and the LoadCallback() task
now gets a WeakPtr to the owning BookmarkStorage. However, it gets a
raw pointer to the BookmarkLoadDetails object, which is still owned
by BookmarkStorage and may have been destroyed when the background
task runs.
This happened on iOS tests after a recent merge.
TBR=sky@chromium.org
BUG=165760
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=282097
Patch Set 1 #Patch Set 2 : fix circular reference #
Total comments: 1
Messages
Total messages: 7 (0 generated)
|