Summary: |
Test the value of msg_controllen for platforms whose CMSG_FIRSTHDR() does not test it for us. |
Product: |
XCB
|
Reporter: |
PHO <pho> |
Component: |
Library | Assignee: |
xcb mailing list dummy <xcb> |
Status: |
RESOLVED
FIXED
|
QA Contact: |
xcb mailing list dummy <xcb> |
Severity: |
normal
|
|
|
Priority: |
medium
|
|
|
Version: |
1.9.3 | |
|
Hardware: |
All | |
|
OS: |
Mac OS X (All) | |
|
Whiteboard: |
|
i915 platform:
|
|
i915 features:
|
|
Bug Depends on: |
|
|
|
Bug Blocks: |
71752
|
|
|
Attachments: |
The patch to fix the problem.
|
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.
Created attachment 90138 [details] The patch to fix the problem. As RFC 2292 points out, some platforms (e.g. Darwin 9.8.0) provide CMSG_FIRSTHDR(msg) which just returns msg.msg_control without first checking if msg.msg_controllen is non-zero. We need a workaround for such platforms not to let _xcb_in_read() segfault.