Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: c8239ff245f1543f4904eeb3107cc59cd96bcf9b
      
https://github.com/WebKit/WebKit/commit/c8239ff245f1543f4904eeb3107cc59cd96bcf9b
  Author: David Kilzer <[email protected]>
  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


_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to