projects
/
platform
/
upstream
/
dbus.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
e3a4d07
)
add more verbose debug spew
author
Havoc Pennington
<hp@redhat.com>
Sun, 16 Feb 2003 23:03:38 +0000
(23:03 +0000)
committer
Havoc Pennington
<hp@redhat.com>
Sun, 16 Feb 2003 23:03:38 +0000
(23:03 +0000)
dbus/dbus-message.c
patch
|
blob
|
history
diff --git
a/dbus/dbus-message.c
b/dbus/dbus-message.c
index
893e45f
..
ed5c1e1
100644
(file)
--- a/
dbus/dbus-message.c
+++ b/
dbus/dbus-message.c
@@
-2038,10
+2038,16
@@
decode_header_data (const DBusString *data,
}
if (!_dbus_marshal_validate_arg (data, byte_order, pos, &new_pos))
}
if (!_dbus_marshal_validate_arg (data, byte_order, pos, &new_pos))
- return FALSE;
+ {
+ _dbus_verbose ("Failed to validate argument to named header field\n");
+ return FALSE;
+ }
if (new_pos > header_len)
if (new_pos > header_len)
- return FALSE;
+ {
+ _dbus_verbose ("Named header field tries to extend beyond header length\n");
+ return FALSE;
+ }
pos = new_pos;
}
pos = new_pos;
}
@@
-2173,6
+2179,7
@@
_dbus_message_loader_return_buffer (DBusMessageLoader *loader,
if (!decode_header_data (&loader->data, header_len, byte_order,
fields))
{
if (!decode_header_data (&loader->data, header_len, byte_order,
fields))
{
+ _dbus_verbose ("Header was invalid\n");
loader->corrupted = TRUE;
return;
}
loader->corrupted = TRUE;
return;
}