[webkit-changes] [WebKit/WebKit] fd3b26: RefCounted should prevent ref()'s that escape the ...
geoffreygaren
noreply at github.com
Sun Dec 1 16:04:14 PST 2024
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: fd3b26ee65ebcea01c84a67adec4c5676b12b5e5
https://github.com/WebKit/WebKit/commit/fd3b26ee65ebcea01c84a67adec4c5676b12b5e5
Author: Geoffrey Garen <ggaren at apple.com>
Date: 2024-12-01 (Sun, 01 Dec 2024)
Changed paths:
M Source/WTF/wtf/RefCounted.h
Log Message:
-----------
RefCounted should prevent ref()'s that escape the destructor
https://bugs.webkit.org/show_bug.cgi?id=283849
rdar://140727952
Reviewed by Chris Dumez.
A ref that escapes the destructor is a use after free. We already have a debug
ASSERT to help catch and diagnose this mistake in testing. This patch adds a
RELEASE_ASSERT to ensure the safety model at runtime.
* Source/WTF/wtf/RefCounted.h:
(WTF::RefCountedBase::~RefCountedBase):
Canonical link: https://commits.webkit.org/287197@main
To unsubscribe from these emails, change your notification settings at https://github.com/WebKit/WebKit/settings/notifications
More information about the webkit-changes
mailing list