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
289684
Workaround a static analyzer false positive in ImageCapture::takePhoto
https://bugs.webkit.org/show_bug.cgi?id=289684
Summary
Workaround a static analyzer false positive in ImageCapture::takePhoto
Ryosuke Niwa
Reported
2025-03-13 02:11:56 PDT
Static analyzer emits a warning for the result of Blob::create that value is uncounted and unsafe despite of the fact Blob::create returns Ref. This is because Blog::create is UnresolvedLookupExpr due to the use of auto for "capture". Explicitly specify the type so that the static analyzer can resolve this type information.
Attachments
Add attachment
proposed patch, testcase, etc.
Ryosuke Niwa
Comment 1
2025-03-13 02:17:03 PDT
Pull request:
https://github.com/WebKit/WebKit/pull/42380
EWS
Comment 2
2025-03-13 09:16:24 PDT
Committed
292094@main
(b7d2eff20a21): <
https://commits.webkit.org/292094@main
> Reviewed commits have been landed. Closing PR #42380 and removing active labels.
Radar WebKit Bug Importer
Comment 3
2025-03-13 09:17:14 PDT
<
rdar://problem/146959058
>
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