[Xcb] [Bug 71758] New: Every structure having a fixed size field after a variadic field/list is broken

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Mon Nov 18 12:19:16 PST 2013


https://bugs.freedesktop.org/show_bug.cgi?id=71758

          Priority: medium
            Bug ID: 71758
          Assignee: xcb at lists.freedesktop.org
            Blocks: 71752
           Summary: Every structure having a fixed size field after a
                    variadic field/list is broken
        QA Contact: xcb at lists.freedesktop.org
          Severity: normal
    Classification: Unclassified
                OS: All
          Reporter: psychon at znc.in
          Hardware: Other
            Status: NEW
           Version: unspecified
         Component: Protocol
           Product: XCB

See: http://lists.freedesktop.org/archives/xcb/2013-October/008689.html

To quote from that mail (more details are in there):

First, the summary if you don't want to read the whole story: It looks
like _every_ structure having a fixed size field after a variadic
field/list is broken! Most other extensions are not affected as they've
the variadic stuff at the end of a structure - not intermixed with fixed
size fields.

[...]

    This struct has a
    - fixed size field (nameLength)
    - variadic list (name)
    - fixed size field (valueLength)
    - variadic list (value).

    Now, look at the generated structure:
    typedef struct xcb_xkb_property_t {
        uint16_t nameLength;
        uint16_t valueLength; <-- doesn't belong here
    } xcb_xkb_property_t;

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/xcb/attachments/20131118/1c4f6bcb/attachment.html>


More information about the Xcb mailing list