mirror of
https://gitlab.freedesktop.org/dbus/dbus.git
synced 2025-12-22 21:50:09 +01:00
missing PATH header field which is required * updated the spec documentation to indicate that INTERFACE, MEMBER, and PATH are all required fields
31 lines
480 B
Text
31 lines
480 B
Text
# Message with an array of NIL (not allowed)
|
|
|
|
VALID_HEADER method_call
|
|
|
|
HEADER_FIELD INTERFACE
|
|
TYPE STRING
|
|
STRING 'org.freedesktop.Foo'
|
|
HEADER_FIELD MEMBER
|
|
TYPE STRING
|
|
STRING 'Bar'
|
|
HEADER_FIELD PATH
|
|
TYPE OBJECT_PATH
|
|
OBJECT_PATH '/foo'
|
|
|
|
ALIGN 8
|
|
END_LENGTH Header
|
|
|
|
START_LENGTH Body
|
|
TYPE ARRAY
|
|
TYPE NIL
|
|
UINT32 5
|
|
|
|
## we want it to fail because of type nil, not because the length is no good
|
|
## so pad out the message with 5 bytes
|
|
BYTE 1
|
|
BYTE 2
|
|
BYTE 3
|
|
BYTE 4
|
|
BYTE 5
|
|
|
|
END_LENGTH Body
|