mirror of
https://gitlab.freedesktop.org/dbus/dbus.git
synced 2026-05-01 03:18:07 +02:00
* test/break-loader.c (randomly_set_extreme_ints): add test that sets really huge and small integers * dbus/dbus-marshal.c (_dbus_marshal_validate_arg): add check that length of boolean array fits in the string, and that string has room for boolean value in single-bool case. * dbus/dbus-message-builder.c (_dbus_message_data_load): add optional value to "ALIGN" command which is what to fill the alignment with. * test/data/valid-messages/no-padding.message: add regression test for the message padding problem
19 lines
369 B
Text
19 lines
369 B
Text
## Message with no header padding
|
|
|
|
## VALID_HEADER includes a LENGTH Header and LENGTH Body
|
|
VALID_HEADER
|
|
|
|
## this byte array is filled with zeros to the natural length
|
|
## of the header
|
|
FIELD_NAME unkn
|
|
TYPE BYTE_ARRAY
|
|
ALIGN 4
|
|
LENGTH ThisByteArray
|
|
START_LENGTH ThisByteArray
|
|
BYTE 1
|
|
ALIGN 8 1
|
|
END_LENGTH ThisByteArray
|
|
|
|
END_LENGTH Header
|
|
START_LENGTH Body
|
|
END_LENGTH Body
|