test cases with wrong header padding
authorHavoc Pennington <hp@redhat.com>
Sun, 16 Feb 2003 23:03:21 +0000 (23:03 +0000)
committerHavoc Pennington <hp@redhat.com>
Sun, 16 Feb 2003 23:03:21 +0000 (23:03 +0000)
test/data/invalid-messages/too-little-header-padding.message [new file with mode: 0644]
test/data/invalid-messages/too-much-header-padding-by-far.message [new file with mode: 0644]
test/data/invalid-messages/too-much-header-padding.message [new file with mode: 0644]

diff --git a/test/data/invalid-messages/too-little-header-padding.message b/test/data/invalid-messages/too-little-header-padding.message
new file mode 100644 (file)
index 0000000..cf73be6
--- /dev/null
@@ -0,0 +1,13 @@
+## has one byte missing from 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
+CHOP 1
+END_LENGTH Header
+START_LENGTH Body
+END_LENGTH Body
diff --git a/test/data/invalid-messages/too-much-header-padding-by-far.message b/test/data/invalid-messages/too-much-header-padding-by-far.message
new file mode 100644 (file)
index 0000000..a60aca8
--- /dev/null
@@ -0,0 +1,15 @@
+## has one byte extra header padding
+
+## VALID_HEADER includes a LENGTH Header and LENGTH Body
+VALID_HEADER
+FIELD_NAME unkn
+TYPE STRING
+STRING 'a'
+ALIGN 8
+BYTE 0
+ALIGN 8
+BYTE 0
+ALIGN 8
+END_LENGTH Header
+START_LENGTH Body
+END_LENGTH Body
diff --git a/test/data/invalid-messages/too-much-header-padding.message b/test/data/invalid-messages/too-much-header-padding.message
new file mode 100644 (file)
index 0000000..ebf154e
--- /dev/null
@@ -0,0 +1,12 @@
+## has one byte extra header padding
+
+## VALID_HEADER includes a LENGTH Header and LENGTH Body
+VALID_HEADER
+FIELD_NAME unkn
+TYPE STRING
+STRING 'a'
+ALIGN 8
+BYTE 0
+END_LENGTH Header
+START_LENGTH Body
+END_LENGTH Body