WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
262650
CMSampleBufferGetSampleAttachmentsArray return value is not checked for nullptr
https://bugs.webkit.org/show_bug.cgi?id=262650
Summary
CMSampleBufferGetSampleAttachmentsArray return value is not checked for nullptr
Brent Fulgham
Reported
2023-10-04 14:28:38 PDT
While reviewing a common crash (
Bug 262556
) I noticed that the missing nullptr check was the return value for CMSampleBufferGetSampleAttachmentsArray. CMSampleBufferGetSampleAttachmentsArray declares that its return value as CM_NULLABLE, to warn users that a nullptr value might be returned. I reviewed other code with CMSampleBufferGetSampleAttachmentsArray, and while we almost always check the return value, there was one places where we did not. This patch adds the missing nullptr check. <
rdar://116485149
>
Attachments
Add attachment
proposed patch, testcase, etc.
Brent Fulgham
Comment 1
2023-10-04 14:32:32 PDT
Pull request:
https://github.com/WebKit/WebKit/pull/18645
EWS
Comment 2
2023-12-04 11:36:34 PST
Committed
271496@main
(bcde08d1581e): <
https://commits.webkit.org/271496@main
> Reviewed commits have been landed. Closing PR #18645 and removing active labels.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug