[webkit-changes] [WebKit/WebKit] c8239f: Fix use-after-move in WebCore::RealtimeMediaSource...
EWS
noreply at github.com
Sat Dec 10 13:38:01 PST 2022
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: c8239ff245f1543f4904eeb3107cc59cd96bcf9b
https://github.com/WebKit/WebKit/commit/c8239ff245f1543f4904eeb3107cc59cd96bcf9b
Author: David Kilzer <ddkilzer at apple.com>
Date: 2022-12-10 (Sat, 10 Dec 2022)
Changed paths:
M Source/WebCore/platform/mediastream/RealtimeMediaSource.cpp
Log Message:
-----------
Fix use-after-move in WebCore::RealtimeMediaSource::supportsSizeAndFrameRate()
https://bugs.webkit.org/show_bug.cgi?id=249057
<rdar://103201164>
Reviewed by Wenson Hsieh.
WTFMove() was being called on `width` and `height` variables
twice in a certain code path, resulting in a use-after-move.
Fix the bug by removing the penultimate WTFMove() calls.
* Source/WebCore/platform/mediastream/RealtimeMediaSource.cpp:
(WebCore::RealtimeMediaSource::supportsSizeAndFrameRate):
Canonical link: https://commits.webkit.org/257685@main
More information about the webkit-changes
mailing list