Skip to content

Commit

Permalink
Leak FontFallbackList from Font (#803)
Browse files Browse the repository at this point in the history
  • Loading branch information
Domiii committed Jul 6, 2023
1 parent 8e1101c commit 2faf73d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions third_party/blink/renderer/platform/fonts/font.cc
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,11 @@ void Font::ReleaseFontFallbackListRef() const {
return;
}

if (recordreplay::AreEventsDisallowed("Font::ReleaseFontFallbackListRef")) {
// [RUN-1436] Leak font_fallback_list_.
return;
}

FontFallbackList& list_ref = *font_fallback_list_;
// Failing this CHECK causes use-after-free below.
CHECK(!list_ref.HasOneRef());
Expand Down

0 comments on commit 2faf73d

Please sign in to comment.