[Webkit-unassigned] [Bug 184090] New: Avoid uninitialized mach ports
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed Mar 28 09:20:47 PDT 2018
https://bugs.webkit.org/show_bug.cgi?id=184090
Bug ID: 184090
Summary: Avoid uninitialized mach ports
Product: WebKit
Version: WebKit Nightly Build
Hardware: Unspecified
OS: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: WebKit Misc.
Assignee: webkit-unassigned at lists.webkit.org
Reporter: bfulgham at webkit.org
It is possible for mach_port_allocate to return an error, but we rarely check its return value. The value of the argument passed to mach_port_allocate is not guaranteed to be valid when it returns an error, so there is a potential for us to try to use invalid ports.
We should always check return values, and ensure that the mach port variables we seek to initialize are kept in a valid state.
While we're at it, we should add some additional assertions to confirm we aren't dealing with invalid ports.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20180328/38ad5175/attachment.html>
More information about the webkit-unassigned
mailing list