From 298bf68b1008f192dfaddcc42435c3fffa831ae5 Mon Sep 17 00:00:00 2001 From: Brian Osman Date: Tue, 24 Nov 2020 14:51:31 -0500 Subject: [PATCH] Fix use of uninitialized memory in animator (#22714) * Fix use of uninitialized memory in animator Discovered via MSAN build of embedder_unittests --- shell/common/animator.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shell/common/animator.h b/shell/common/animator.h index effc0111100..cd2fff454e2 100644 --- a/shell/common/animator.h +++ b/shell/common/animator.h @@ -108,7 +108,7 @@ class Animator final { bool frame_scheduled_; int notify_idle_task_id_; bool dimension_change_pending_; - SkISize last_layer_tree_size_; + SkISize last_layer_tree_size_ = {0, 0}; std::deque trace_flow_ids_; fml::WeakPtrFactory weak_factory_;