WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
Bug 222084
Crash in IPC::decode(Decoder& decoder, RetainPtr<SecKeychainItemRef>& result)
https://bugs.webkit.org/show_bug.cgi?id=222084
Summary
Crash in IPC::decode(Decoder& decoder, RetainPtr<SecKeychainItemRef>& result)
Julian Gonzalez
Reported
2021-02-17 17:51:52 PST
e.g. #1 0x7fff223e01bc in SecKeychainItemCopyFromPersistentReference+0x176 #2 0x118cfa27b in IPC::decode(IPC::Decoder&, WTF::RetainPtr<__SecKeychainItem*>&) ArgumentCodersCF.cpp:672 #3 0x118cf6078 in IPC::decode(IPC::Decoder&, WTF::RetainPtr<void const*>&) ArgumentCodersCF.cpp:259 #4 0x118cf8228 in IPC::decode(IPC::Decoder&, WTF::RetainPtr<__CFDictionary const*>&) ArgumentCodersCF.cpp:461 #5 0x11a0056d7 in IPC::decodeNSError(IPC::Decoder&, WTF::RetainPtr<NSError>&) WebCoreArgumentCodersMac.mm:411 #6 0x11a005406 in IPC::ArgumentCoder<WebCore::ResourceError>::decodePlatformData(IPC::Decoder&, WebCore::ResourceError&) WebCoreArgumentCodersMac.mm:435 SecKeychainItemCopyFromPersistentReference() cannot handle CFDataRefs with length 0. <
rdar://problem/73568808
>
Attachments
Patch
(4.15 KB, patch)
2021-02-17 18:04 PST
,
Julian Gonzalez
no flags
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Julian Gonzalez
Comment 1
2021-02-17 18:04:01 PST
Created
attachment 420776
[details]
Patch
Julian Gonzalez
Comment 2
2021-02-18 15:44:48 PST
Failing Windows tests here do not seem to be related - this is a change in Mac only code.
Ryosuke Niwa
Comment 3
2021-02-18 17:13:20 PST
Yeah http/tests/xmlhttprequest/redirect-cross-origin-sync-double.html isn't always failing.
EWS
Comment 4
2021-02-18 17:16:33 PST
Committed
r273116
: <
https://commits.webkit.org/r273116
> All reviewed patches have been landed. Closing bug and clearing flags on
attachment 420776
[details]
.
Darin Adler
Comment 5
2021-02-18 17:29:15 PST
Comment on
attachment 420776
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=420776&action=review
> Source/WebKit/Shared/cf/ArgumentCodersCF.cpp:671 > + CFDataRef dref = data.get();
For future reference, in a case like this there is no need for the local variable. It’s totally fine to call data.get() twice.
Ryosuke Niwa
Comment 6
2021-02-19 11:50:03 PST
(In reply to Darin Adler from
comment #5
)
> Comment on
attachment 420776
[details]
> Patch > > View in context: >
https://bugs.webkit.org/attachment.cgi?id=420776&action=review
> > > Source/WebKit/Shared/cf/ArgumentCodersCF.cpp:671 > > + CFDataRef dref = data.get(); > > For future reference, in a case like this there is no need for the local > variable. It’s totally fine to call data.get() twice.
That's a good point. The compiler will do the work for us since get() is a simple accessor.
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