mirror of
https://gitlab.freedesktop.org/dbus/dbus.git
synced 2026-05-01 07:57:58 +02:00
* test/data/valid-messages/opposite-endian.message: fix test
to use proper type for rply field
* test/data/invalid-messages: add tests for below validation
* dbus/dbus-message.c (decode_header_data): validate field types,
and validate that named fields are valid names
(decode_name_field): consider messages in the
org.freedesktop.Local. namespace to be invalid.
* dbus/dbus-string.c (_dbus_string_validate_name): new
36 lines
497 B
Text
36 lines
497 B
Text
## Message of opposite endianness, with lots of random fields in it
|
|
|
|
OPPOSITE_ENDIAN
|
|
|
|
## VALID_HEADER includes a LENGTH Header and LENGTH Body
|
|
VALID_HEADER
|
|
|
|
FIELD_NAME rply
|
|
TYPE UINT32
|
|
UINT32 10000
|
|
|
|
FIELD_NAME name
|
|
TYPE STRING
|
|
STRING 'org.freedesktop.Foo'
|
|
|
|
FIELD_NAME unkn
|
|
TYPE INT32
|
|
INT32 0xfeeb
|
|
|
|
ALIGN 8
|
|
END_LENGTH Header
|
|
|
|
START_LENGTH Body
|
|
|
|
TYPE INT32
|
|
INT32 89765432
|
|
TYPE UINT32
|
|
UINT32 0xfffffff
|
|
TYPE STRING
|
|
STRING 'Hello this is a string'
|
|
TYPE DOUBLE
|
|
DOUBLE 3.14159
|
|
|
|
TYPE NIL
|
|
|
|
END_LENGTH Body
|