WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
55412
Frequent crashes in CFURLCache code on Snow Leopard
https://bugs.webkit.org/show_bug.cgi?id=55412
Summary
Frequent crashes in CFURLCache code on Snow Leopard
Alexey Proskuryakov
Reported
2011-02-28 14:32:22 PST
We're passing a wrong path when creating an NSURLCache, so it can't initialize an SQL database, and misbehaves. <
rdar://problem/9063922
>
Attachments
proposed fix
(4.81 KB, patch)
2011-02-28 14:40 PST
,
Alexey Proskuryakov
mitz: review+
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Alexey Proskuryakov
Comment 1
2011-02-28 14:40:30 PST
Created
attachment 84125
[details]
proposed fix
mitz
Comment 2
2011-02-28 14:50:05 PST
Comment on
attachment 84125
[details]
proposed fix View in context:
https://bugs.webkit.org/attachment.cgi?id=84125&action=review
> Source/WebKit2/ChangeLog:18 > + like have liked trailing slash).
extra “like”
> Source/WebKit2/Shared/WebProcessCreationParameters.h:83 > + // FIXME: These should not be merged with CFURLCache counterparts below.
not?
> Source/WebKit2/UIProcess/mac/WebContextMac.mm:85 > + ASSERT(parameters.nsURLCachePath.data()[strlen(parameters.nsURLCachePath.data()) - 1] != '/'); // Necessary for NSURLCache to find the cache file.
Should we assert that strlen(…) is > 0 first?
> Source/WebKit2/UIProcess/win/WebContextWin.cpp:68 > + if (parameters.cfURLCachePath[parameters.cfURLCachePath.length() - 1] == '/')
and here
Alexey Proskuryakov
Comment 3
2011-02-28 15:07:16 PST
Fixed in
http://trac.webkit.org/changeset/79927
. Note that there is some controversy around whether it's really OK for CString length to not match strlen. But we already use strlen with -[NSFileManager stringWithFileSystemRepresentation:length:] elsewhere.
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