diff options
author | Havoc Pennington <hp@redhat.com> | 2005-01-27 23:39:26 +0000 |
---|---|---|
committer | Havoc Pennington <hp@redhat.com> | 2005-01-27 23:39:26 +0000 |
commit | fddbc09c4a9125fcb168fb31ff300d4132919ea6 (patch) | |
tree | b9f9779991f96ea4207a6795679a2f55087ac8ed /dbus/dbus-marshal-validate.c | |
parent | 382d5ad0b4adf0070948fc2da623bc52894a7788 (diff) | |
download | dbus-fddbc09c4a9125fcb168fb31ff300d4132919ea6.tar.gz |
2005-01-27 Havoc Pennington <hp@redhat.com>
* dbus/dbus-message.c: byteswap the message if you init an
iterator to read/write from it
* dbus/dbus-marshal-byteswap.c: new file implementing
_dbus_marshal_byteswap()
* dbus/dbus-marshal-basic.c: add _dbus_swap_array()
Diffstat (limited to 'dbus/dbus-marshal-validate.c')
-rw-r--r-- | dbus/dbus-marshal-validate.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/dbus/dbus-marshal-validate.c b/dbus/dbus-marshal-validate.c index e06add50..f15d2811 100644 --- a/dbus/dbus-marshal-validate.c +++ b/dbus/dbus-marshal-validate.c @@ -24,6 +24,8 @@ #include "dbus-internals.h" #include "dbus-marshal-validate.h" #include "dbus-marshal-recursive.h" +#include "dbus-marshal-basic.h" +#include "dbus-string.h" /** * @addtogroup DBusMarshal @@ -254,6 +256,11 @@ validate_body_helper (DBusTypeReader *reader, while (p < array_end) { + /* FIXME we are calling a function per array element! very bad + * need if (dbus_type_is_fixed(elem_type)) here to just skip + * big blocks of ints/bytes/etc. + */ + validity = validate_body_helper (&sub, byte_order, FALSE, p, end, &p); if (validity != DBUS_VALID) return validity; |