diff options
author | Anders Carlsson <andersca@codefactory.se> | 2003-02-24 20:26:13 +0000 |
---|---|---|
committer | Anders Carlsson <andersca@codefactory.se> | 2003-02-24 20:26:13 +0000 |
commit | 3781f063a6dfbdeafea6d1c6c8ac10c8b22f8586 (patch) | |
tree | 926d560631100b7af15d7167428f61273a258061 /test/data | |
parent | c96500c37f69a8103b38b0d3fb90d8b37097ebcf (diff) |
2003-02-24 Anders Carlsson <andersca@codefactory.se>
* dbus/dbus-marshal.c: (_dbus_marshal_validate_arg):
* dbus/dbus-message-builder.c: (_dbus_message_data_load):
* dbus/dbus-message.c: (dbus_message_append_boolean),
(dbus_message_append_boolean_array),
(dbus_message_get_args_valist), (_dbus_message_test):
* dbus/dbus-message.h:
* doc/dbus-specification.sgml:
Various fixes as pointed out by Havoc.
* test/data/invalid-messages/bad-boolean-array.message:
* test/data/invalid-messages/bad-boolean.message:
Add invalid boolean value test cases.
Diffstat (limited to 'test/data')
-rw-r--r-- | test/data/invalid-messages/bad-boolean-array.message | 14 | ||||
-rw-r--r-- | test/data/invalid-messages/bad-boolean.message | 10 |
2 files changed, 24 insertions, 0 deletions
diff --git a/test/data/invalid-messages/bad-boolean-array.message b/test/data/invalid-messages/bad-boolean-array.message new file mode 100644 index 00000000..54b31d6c --- /dev/null +++ b/test/data/invalid-messages/bad-boolean-array.message @@ -0,0 +1,14 @@ +## a message with an invalid boolean array + +## VALID_HEADER includes a LENGTH Header and LENGTH Body +VALID_HEADER +ALIGN 8 +END_LENGTH Header +START_LENGTH Body +TYPE BOOLEAN_ARRAY +ALIGN 4 +INT32 3 +BYTE 0 +BYTE 1 +BYTE 3 +END_LENGTH Body diff --git a/test/data/invalid-messages/bad-boolean.message b/test/data/invalid-messages/bad-boolean.message new file mode 100644 index 00000000..0755ab5e --- /dev/null +++ b/test/data/invalid-messages/bad-boolean.message @@ -0,0 +1,10 @@ +## a message with an invalid boolean value + +## VALID_HEADER includes a LENGTH Header and LENGTH Body +VALID_HEADER +ALIGN 8 +END_LENGTH Header +START_LENGTH Body +TYPE BOOLEAN +BYTE 3 +END_LENGTH Body |