summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorHavoc Pennington <hp@redhat.com>2003-02-16 23:10:05 +0000
committerHavoc Pennington <hp@redhat.com>2003-02-16 23:10:05 +0000
commitb293770841ec924401fc91d99a02ec73ff89dd0f (patch)
treea316359ceeeff71a4c481fadc5ea0cf00200befe /test
parent034e35b33de3ed1251fef7db81b46d5a1733b0a6 (diff)
downloaddbus-b293770841ec924401fc91d99a02ec73ff89dd0f.tar.gz
add test for header padding not set to all bits 0
Diffstat (limited to 'test')
-rw-r--r--test/data/invalid-messages/not-nul-header-padding.message14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/data/invalid-messages/not-nul-header-padding.message b/test/data/invalid-messages/not-nul-header-padding.message
new file mode 100644
index 00000000..1172af4b
--- /dev/null
+++ b/test/data/invalid-messages/not-nul-header-padding.message
@@ -0,0 +1,14 @@
+## has one non-nul byte in header padding
+
+## VALID_HEADER includes a LENGTH Header and LENGTH Body
+VALID_HEADER
+FIELD_NAME unkn
+TYPE STRING
+STRING 'a'
+ALIGN 8
+## kill a padding byte and replace it
+CHOP 1
+BYTE 'q'
+END_LENGTH Header
+START_LENGTH Body
+END_LENGTH Body