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
Patch (1.51 KB, patch)
2011-08-02 18:02 PDT, Pratik Solanki
ddkilzer: review+
Pratik Solanki
Comment 1 2011-08-02 17:29:10 PDT
Pratik Solanki
Comment 2 2011-08-02 17:30:04 PDT
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
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
Note You need to log in before you can comment on or make changes to this bug.