[webkit-changes] [WebKit/WebKit] bcde08: CMSampleBufferGetSampleAttachmentsArray return val...
Brent Fulgham
noreply at github.com
Mon Dec 4 11:36:37 PST 2023
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: bcde08d1581e66f651880e5903c782332fa5bc67
https://github.com/WebKit/WebKit/commit/bcde08d1581e66f651880e5903c782332fa5bc67
Author: Brent Fulgham <bfulgham at apple.com>
Date: 2023-12-04 (Mon, 04 Dec 2023)
Changed paths:
M Source/WebCore/platform/graphics/avfoundation/objc/MediaSampleAVFObjC.mm
Log Message:
-----------
CMSampleBufferGetSampleAttachmentsArray return value is not checked for nullptr
https://bugs.webkit.org/show_bug.cgi?id=262650
<rdar://116485149>
Reviewed by Jer Noble.
CMSampleBufferGetSampleAttachmentsArray declares that its return value as CM_NULLABLE,
to warn users that a nullptr value might be returned.
This patch adds the missing nullptr check.
* Source/WebCore/platform/graphics/avfoundation/objc/MediaSampleAVFObjC.mm:
(WebCore::MediaSampleAVFObjC::createNonDisplayingCopy const):
Canonical link: https://commits.webkit.org/271496@main
More information about the webkit-changes
mailing list