Bug 199580

Summary: Prevent null dereferencing in SubresourceLoader::init's lambda
Product: WebKit Reporter: Alex Christensen <achristensen>
Component: New BugsAssignee: Alex Christensen <achristensen>
Status: RESOLVED FIXED    
Severity: Normal CC: beidson, cdumez, commit-queue, dbates, ews-watchlist, japhet, rniwa, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
See Also: https://bugs.webkit.org/show_bug.cgi?id=187360
Attachments:
Description Flags
Patch
none
Patch none

Description Alex Christensen 2019-07-08 11:18:32 PDT
Prevent null dereferencing in SubresourceLoader::init's lambda
Comment 1 Alex Christensen 2019-07-08 11:19:21 PDT
Created attachment 373646 [details]
Patch
Comment 2 Ryosuke Niwa 2019-07-08 14:32:42 PDT
Comment on attachment 373646 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=373646&action=review

> Source/WebCore/loader/SubresourceLoader.cpp:168
> +            ASSERT_NOT_REACHED();

Should we add a release log for this so that if someone complains that the page load doesn't finish, etc... we can check the sysdiagnose and see that this had happened?
Comment 3 Chris Dumez 2019-07-08 14:41:09 PDT
Comment on attachment 373646 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=373646&action=review

>> Source/WebCore/loader/SubresourceLoader.cpp:168
>> +            ASSERT_NOT_REACHED();
> 
> Should we add a release log for this so that if someone complains that the page load doesn't finish, etc... we can check the sysdiagnose and see that this had happened?

RELEASE_LOG_ERROR().
Comment 4 Alex Christensen 2019-07-08 14:43:17 PDT
Created attachment 373667 [details]
Patch
Comment 5 Alex Christensen 2019-07-08 15:59:23 PDT
http://trac.webkit.org/r247231
Comment 6 Radar WebKit Bug Importer 2019-07-08 16:03:23 PDT
<rdar://problem/52802510>