WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
184090
Avoid uninitialized mach ports
https://bugs.webkit.org/show_bug.cgi?id=184090
Summary
Avoid uninitialized mach ports
Brent Fulgham
Reported
2018-03-28 09:20:47 PDT
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.
Attachments
Patch
(42.79 KB, patch)
2018-03-28 09:48 PDT
,
Brent Fulgham
cdumez
: review+
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Brent Fulgham
Comment 1
2018-03-28 09:37:40 PDT
<
rdar://problem/37261129
>
Brent Fulgham
Comment 2
2018-03-28 09:48:40 PDT
Created
attachment 336666
[details]
Patch
Chris Dumez
Comment 3
2018-03-28 10:00:58 PDT
Comment on
attachment 336666
[details]
Patch r=me if the bots are happy.
Brent Fulgham
Comment 4
2018-03-28 11:07:02 PDT
Committed
r230035
: <
https://trac.webkit.org/changeset/230035
>
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