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 65584
Crash in ResourceResponse::platformCompare() with USE(CFNETWORK)
https://bugs.webkit.org/show_bug.cgi?id=65584
Summary
Crash in ResourceResponse::platformCompare() with USE(CFNETWORK)
Pratik Solanki
Reported
2011-08-02 17:26:04 PDT
Code does return CFEqual(a.cfURLResponse(), b.cfURLResponse()); And it crashes the cfURLResponses are 0 and CFEqual doesn't like that. This is fine on the Foundation side since we do return a.nsURLResponse() == b.nsURLResponse();
Attachments
Patch
(1.56 KB, patch)
2011-08-02 17:29 PDT
,
Pratik Solanki
no flags
Details
Formatted Diff
Diff
Patch
(1.51 KB, patch)
2011-08-02 18:02 PDT
,
Pratik Solanki
ddkilzer
: review+
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Pratik Solanki
Comment 1
2011-08-02 17:29:10 PDT
Created
attachment 102718
[details]
Patch
Pratik Solanki
Comment 2
2011-08-02 17:30:04 PDT
<
rdar://problem/9878360
>
Darin Adler
Comment 3
2011-08-02 17:49:05 PDT
Comment on
attachment 102718
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=102718&action=review
> Source/WebCore/platform/network/cf/ResourceResponseCFNet.cpp:144 > +#if PLATFORM(MAC) > + // CFEqual crashes if you pass it 0 and on Mac we can end up with cfURLResponse() being 0. > + if (!a.cfURLResponse() || !b.cfURLResponse()) > + return a.cfURLResponse() == b.cfURLResponse(); > +#endif
This should be unconditional, not inside #if PLATFORM(MAC)
Pratik Solanki
Comment 4
2011-08-02 18:02:05 PDT
Created
attachment 102724
[details]
Patch
Pratik Solanki
Comment 5
2011-08-02 18:02:21 PDT
Updated patch to make it unconditional.
David Kilzer (:ddkilzer)
Comment 6
2011-08-02 19:31:22 PDT
Comment on
attachment 102724
[details]
Patch r=me
Pratik Solanki
Comment 7
2011-08-02 22:08:28 PDT
Committed
r92261
: <
http://trac.webkit.org/changeset/92261
>
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