summaryrefslogtreecommitdiffstats
path: root/test/break-loader.c
diff options
context:
space:
mode:
authorHavoc Pennington <hp@redhat.com>2003-04-22 19:34:33 +0000
committerHavoc Pennington <hp@redhat.com>2003-04-22 19:34:33 +0000
commitb3a3969897930eeda308113acbbb3f98069ee1ab (patch)
tree5cd99199ea35eb1f61d5d3cda9013130af488270 /test/break-loader.c
parent983200f912f41ba75a873c011bfbcd3b0285bf4c (diff)
2003-04-22 Havoc Pennington <hp@redhat.com>
* 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
Diffstat (limited to 'test/break-loader.c')
-rw-r--r--test/break-loader.c14
1 files changed, 12 insertions, 2 deletions
diff --git a/test/break-loader.c b/test/break-loader.c
index 1ddaec40..ebe2606b 100644
--- a/test/break-loader.c
+++ b/test/break-loader.c
@@ -499,6 +499,7 @@ find_breaks_based_on (const DBusString *filename,
goto failed;
}
+ printf (" changing one random byte 100 times\n");
i = 0;
while (i < 100)
{
@@ -508,6 +509,7 @@ find_breaks_based_on (const DBusString *filename,
++i;
}
+ printf (" changing length 50 times\n");
i = 0;
while (i < 50)
{
@@ -516,7 +518,8 @@ find_breaks_based_on (const DBusString *filename,
++i;
}
-
+
+ printf (" removing one byte 50 times\n");
i = 0;
while (i < 50)
{
@@ -526,6 +529,7 @@ find_breaks_based_on (const DBusString *filename,
++i;
}
+ printf (" adding one byte 50 times\n");
i = 0;
while (i < 50)
{
@@ -535,6 +539,7 @@ find_breaks_based_on (const DBusString *filename,
++i;
}
+ printf (" changing ints to boundary values 50 times\n");
i = 0;
while (i < 50)
{
@@ -544,6 +549,7 @@ find_breaks_based_on (const DBusString *filename,
++i;
}
+ printf (" changing typecodes 50 times\n");
i = 0;
while (i < 50)
{
@@ -552,7 +558,8 @@ find_breaks_based_on (const DBusString *filename,
++i;
}
-
+
+ printf (" changing message length 15 times\n");
i = 0;
while (i < 15)
{
@@ -562,6 +569,7 @@ find_breaks_based_on (const DBusString *filename,
++i;
}
+ printf (" randomly making 2 of above modifications 42 times\n");
i = 0;
while (i < 42)
{
@@ -571,6 +579,7 @@ find_breaks_based_on (const DBusString *filename,
++i;
}
+ printf (" randomly making 3 of above modifications 42 times\n");
i = 0;
while (i < 42)
{
@@ -580,6 +589,7 @@ find_breaks_based_on (const DBusString *filename,
++i;
}
+ printf (" randomly making 4 of above modifications 42 times\n");
i = 0;
while (i < 42)
{