Home | History | Annotate | Download | only in invalid-messages
      1 # Message with an array of NIL (not allowed)
      2 
      3 VALID_HEADER method_call
      4 
      5 HEADER_FIELD INTERFACE
      6 TYPE STRING
      7 STRING 'org.freedesktop.Foo'
      8 HEADER_FIELD MEMBER
      9 TYPE STRING
     10 STRING 'Bar'
     11 HEADER_FIELD PATH
     12 TYPE OBJECT_PATH 
     13 OBJECT_PATH '/foo'
     14 
     15 ALIGN 8
     16 END_LENGTH Header
     17 
     18 START_LENGTH Body
     19 TYPE ARRAY
     20 TYPE NIL
     21 UINT32 5
     22 
     23 ## we want it to fail because of type nil, not because the length is no good
     24 ## so pad out the message with 5 bytes
     25 BYTE 1
     26 BYTE 2
     27 BYTE 3
     28 BYTE 4
     29 BYTE 5
     30 
     31 END_LENGTH Body
     32