Branch: refs/heads/main Home: https://github.com/WebKit/WebKit Commit: fd3b26ee65ebcea01c84a67adec4c5676b12b5e5 https://github.com/WebKit/WebKit/commit/fd3b26ee65ebcea01c84a67adec4c5676b12b5e5 Author: Geoffrey Garen <gga...@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 _______________________________________________ webkit-changes mailing list webkit-changes@lists.webkit.org https://lists.webkit.org/mailman/listinfo/webkit-changes