DescriptionAsan use after free in Aura cc:TextureLayer::Update
What happens is that GpuProcessTransportFactory::OffscreenContextProviderForMainThread() resets the shared context, so the existing one is freed, but OwnedTexture has a raw pointer to it
Which is accessed by TextureLayer::Update via the client.
So the solution is to have the client reset the raw pointer when the OnLostMainThreadSharedContext() is fired on the OwnedTexture, note how that function has a scoped pointer on the old_contexts_main_thread which makes it safe to call host_context_ while in the callback.
BUG=275775
TEST=none, see bug for asan notes.
Patch Set 1 #
Total comments: 2
Messages
Total messages: 6 (0 generated)
|