Bug 187787

Summary: Better deal with unexpected descriptor types in IPC::Connection's createMessageDecoder()
Product: WebKit Reporter: Chris Dumez <cdumez>
Component: WebKit2Assignee: Chris Dumez <cdumez>
Status: RESOLVED INVALID    
Severity: Normal CC: achristensen, beidson, rniwa
Priority: P2    
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch none

Description Chris Dumez 2018-07-18 15:24:07 PDT
Better deal with unexpected descriptor types in IPC::Connection's createMessageDecoder() so that decoding actually fails instead of adding default-constructed IPC::Attachment objects to the Decoder.
We have cases where decoding succeeds but the mach_port passed via IPC is null (rdar://problem/41995022) and this could be the cause.
Comment 1 Chris Dumez 2018-07-18 15:25:23 PDT
Created attachment 345294 [details]
Patch