Skip to content

Commit 298bf68

Browse files
authored
Fix use of uninitialized memory in animator (flutter#22714)
* Fix use of uninitialized memory in animator Discovered via MSAN build of embedder_unittests
1 parent 97a4af5 commit 298bf68

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

shell/common/animator.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ class Animator final {
108108
bool frame_scheduled_;
109109
int notify_idle_task_id_;
110110
bool dimension_change_pending_;
111-
SkISize last_layer_tree_size_;
111+
SkISize last_layer_tree_size_ = {0, 0};
112112
std::deque<uint64_t> trace_flow_ids_;
113113

114114
fml::WeakPtrFactory<Animator> weak_factory_;

0 commit comments

Comments
 (0)