[Webkit-unassigned] [Bug 249057] New: Fix use-after-move in WebCore::RealtimeMediaSource::supportsSizeAndFrameRate()

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Dec 9 17:40:33 PST 2022


https://bugs.webkit.org/show_bug.cgi?id=249057

            Bug ID: 249057
           Summary: Fix use-after-move in
                    WebCore::RealtimeMediaSource::supportsSizeAndFrameRate
                    ()
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Media
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: ddkilzer at webkit.org

Fix use-after-move in WebCore::RealtimeMediaSource::supportsSizeAndFrameRate().

Both `width` and `height` have a use-after-move bug in Source/WebCore/platform/mediastream/RealtimeMediaSource.cpp:

```
    if (!supportsSizeAndFrameRate(WTFMove(width), WTFMove(height), WTFMove(frameRate))) {
        // Let's try without frame rate constraint if not mandatory.
        if (frameRateConstraint && !frameRateConstraint->isMandatory() && supportsSizeAndFrameRate(WTFMove(width), WTFMove(height), { }))
```

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20221210/ae91a6b5/attachment.htm>


More information about the webkit-unassigned mailing list