Crash tracing data indicates that the network process is sometimes handed malformed HSTS data, leading to a nullptr dereference. This patch adds some assertions to catch the invalid state in debug builds, and allows the process to ignore the bad data and continue.
<rdar://problem/43403817>
Created attachment 366630 [details] Patch
Comment on attachment 366630 [details] Patch If this is happening, doesn't this indicate the HSTS cache is corrupted and we should clear the HSTS cache completely?
Created attachment 366955 [details] Patch
Comment on attachment 366955 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=366955&action=review > Source/WebKit/NetworkProcess/cocoa/NetworkProcessCocoa.mm:163 > + auto hostnames = static_cast<HashSet<String>*>(context); We usually prefer auto* for raw pointers.
Committed r244035: <https://trac.webkit.org/changeset/244035>