Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 9a029b1e8b76e34c2103c203e635c17e20aaa800
https://github.com/WebKit/WebKit/commit/9a029b1e8b76e34c2103c203e635c17e20aaa800
Author: Anthony Tarbinian <[email protected]>
Date: 2025-10-14 (Tue, 14 Oct 2025)
Changed paths:
M Source/WebCore/SaferCPPExpectations/UncheckedCallArgsCheckerExpectations
M Source/WebCore/dom/CharacterData.cpp
Log Message:
-----------
[SaferCPP] Wrap FrameSelection in CheckedRef
https://bugs.webkit.org/show_bug.cgi?id=300534
rdar://162403789
Reviewed by Ryosuke Niwa.
Wrap usage of FrameSelection in CheckedRef to check the lifetime
before it gets used as the `this` parameter of `textWasReplaced()`.
Fixes static analyzer warning:
"Call argument for 'this' parameter is unchecked and unsafe".
* Source/WebCore/SaferCPPExpectations/UncheckedCallArgsCheckerExpectations:
* Source/WebCore/dom/CharacterData.cpp:
(WebCore::CharacterData::setData):
(WebCore::CharacterData::setDataAndUpdate):
Canonical link: https://commits.webkit.org/301499@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes