WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
165192
Make ApplicationCacheHost::maybeLoadSynchronously more robust
https://bugs.webkit.org/show_bug.cgi?id=165192
Summary
Make ApplicationCacheHost::maybeLoadSynchronously more robust
youenn fablet
Reported
2016-11-30 03:37:06 PST
In case out parameter "data" is not null and shouldLoadResourceFromApplicationCache returns false and resource is null, we might dereference a null pointer. "data" out parameter cannot be null right now but we should not expect callers to always do that
Attachments
Patch
(3.28 KB, patch)
2016-11-30 03:39 PST
,
youenn fablet
no flags
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
youenn fablet
Comment 1
2016-11-30 03:39:57 PST
Created
attachment 295712
[details]
Patch
Alex Christensen
Comment 2
2017-01-12 14:33:04 PST
Comment on
attachment 295712
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=295712&action=review
We should also stop using ResourceHandle directly with ApplicationCacheGroup
> Source/WebCore/ChangeLog:10 > + We refactor the code to ensure that this case cannot happen anymore.
If it can happen now, we should add a test that reproduces it before this change.
youenn fablet
Comment 3
2017-01-12 14:35:26 PST
(In reply to
comment #2
)
> Comment on
attachment 295712
[details]
> Patch > > View in context: >
https://bugs.webkit.org/attachment.cgi?id=295712&action=review
> > We should also stop using ResourceHandle directly with ApplicationCacheGroup > > > Source/WebCore/ChangeLog:10 > > + We refactor the code to ensure that this case cannot happen anymore. > > If it can happen now, we should add a test that reproduces it before this > change.
I don't think this can happen. This change is coming from discussions with Keith based on some static analysis he did.
WebKit Commit Bot
Comment 4
2017-01-12 15:13:18 PST
Comment on
attachment 295712
[details]
Patch Clearing flags on attachment: 295712 Committed
r210682
: <
http://trac.webkit.org/changeset/210682
>
WebKit Commit Bot
Comment 5
2017-01-12 15:13:24 PST
All reviewed patches have been landed. Closing bug.
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