summaryrefslogtreecommitdiffstats
path: root/test/data/invalid-messages/array-of-nil.message
blob: 7f0ac71874966ab7d85f3e5dfcf56af58a0760c7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# 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'

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