History log of /external/dbus/dbus/dbus-message-factory.c
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
c11401949f29a97414887a01f0d3e6e8fe60ba40 13-Dec-2010 Havoc Pennington <hp@pobox.com> CVE 2010-4352: Reject deeply nested variants

Add DBUS_INVALID_NESTED_TOO_DEEPLY validity problem and a test that
should generate it.

Previously, we rejected deep nesting in the signature, but
variants allow dynamic message nesting, conditional only
on the depth of the message body.

The nesting limit is 64, which was also the limit in static
signatures. Empirically, dynamic nesting depth observed on my
Fedora 14 system doesn't exceed 2; 64 is really a huge limit.

https://bugs.freedesktop.org/show_bug.cgi?id=32321

Signed-Off-By: Colin Walters <walters@verbum.org>
Signed-off-by: Will Thompson <will.thompson@collabora.co.uk>
/external/dbus/dbus/dbus-message-factory.c
37019e9d271390fa8c62c1aae62d30bb9068adaa 16-Jul-2009 Thiago Macieira <thiago@kde.org> Merge branch 'fd-passing'

Conflicts:
dbus/dbus-connection.c
dbus/dbus-message-util.c
dbus/dbus-sysdeps-unix.c
5baf2f856a9c6625993234855b07680da1c8916f 11-Jul-2009 Tobias Mueller <fdo-bugs@cryptobitch.de> Bug 21161 - Update the FSF address

No comment.

Signed-off-by: Colin Walters <walters@verbum.org>
/external/dbus/dbus/dbus-message-factory.c
ba7daa606cf20ff3b5e992907f380a425feaef01 22-Apr-2009 Lennart Poettering <lennart@poettering.net> unix-fd: add basic marshalling code for unix fds

This is actually pretty boring since we store our fds as indexes that
are stored as uint32_t's.
/external/dbus/dbus/dbus-message-factory.c
16a947eedb7f7f2951fff4ebbf301af7776aa8df 21-Apr-2009 William Lachance <wrlach@gmail.com> Bug 19567 - Make marshaling code usable without DBusConnection

Some projects want to reuse the DBus message format, without
actually going through a DBusConnection. This set of changes
makes a few functions from DBusMessage public, and adds a new
function to determine the number of bytes needed to demarshal
a message.

Signed-off-by: Colin Walters <walters@verbum.org>
/external/dbus/dbus/dbus-message-factory.c
d012387afef0ba02185ebe27bc6bb15551912e92 14-Jul-2007 Havoc Pennington <hp@redhat.com> 2007-07-13 Havoc Pennington <hp@redhat.com>

* Add indent-tabs-mode: nil to all file headers.
/external/dbus/dbus/dbus-message-factory.c
15ef0ef6fbba7827453b7973e62b6c1853576601 20-Oct-2006 Havoc Pennington <hp@redhat.com> 2006-10-19 Havoc Pennington <hp@redhat.com>

* Fix a pile of Doxygen warnings and missing docs
/external/dbus/dbus/dbus-message-factory.c
b4474dac7cdee505340bece7ad2fefb3aa0a112f 12-Jul-2006 John (J5) Palmieri <johnp@redhat.com> * dbus/dbus-message-factory.c:
Fix index into an array (patch by Peter Kümmel <syntheticpp at gmx.net>)
/external/dbus/dbus/dbus-message-factory.c
bc564a69c26419a125eb1880069d9276a47f7d1b 07-Sep-2005 John (J5) Palmieri <johnp@redhat.com> * Released 0.50

* Patch from Steve Grubb:
- bus/activation.c (bus_activation_service_reload_test): clean up
some indentation
- dbus/dbus-keyring.c (_dbus_keyring_reload): fix conditional
- dbus/dbus-message-factory.c (generate_special): fix a couple of
buffer overflows in the test suite. This is non critical because
it can not be exploited and this code is only run when doing a
make check.

* Patch from Yaakov Selkowitz: Build fixes for Cygwin
- configure.in: Don't check and link against kdecore, only qt headers
- dbus/Makefile.am: Add -no-undefined to libdbus_1_la_LDFLAGS
- gcj/org/freedesktop/dbus/Makefile.am:
add libdbus_gcj_1_la_LDFLAGS = -no-undefined
- glib/Makefile.am: Add -no-undefined to libdbus_glib_1_la_LDFLAGS
and $(DBUS_GLIB_LIBS) to dbus_binding_tool_LDADD
- qt/Makefile.am: Add -no-undefined to libdbus_qt_1_la_LDFLAGS
- tools/Makefile.am: Add platform extentions to binaries
(i.e. .exe on windows)

* configure.in:
- Make it so if no suitable version of python is found we only
disable building python instead of exiting the configure script
- Require version 2.4 of glib for glib bindings
- Up version to 0.50

* python/__init__.py: Sync version with libdbus to (0,50,0)
/external/dbus/dbus/dbus-message-factory.c
248895207dc15914ac7970a6d1431308075dca1d 17-Feb-2005 Colin Walters <walters@verbum.org> 2005-02-17 Colin Walters <walters@verbum.org>

* dbus/dbus-protocol.h (DBUS_SERVICE_ORG_FREEDESKTOP_DBUS):
Rename to DBUS_SERVICE_DBUS.
(DBUS_PATH_ORG_FREEDESKTOP_DBUS): Rename to DBUS_PATH_DBUS.
(DBUS_PATH_ORG_FREEDESKTOP_LOCAL): Rename to DBUS_PATH_LOCAL.
(DBUS_INTERFACE_ORG_FREEDESKTOP_DBUS): Rename to DBUS_INTERFACE_DBUS.
(DBUS_INTERFACE_ORG_FREEDESKTOP_INTROSPECTABLE): Rename to
DBUS_INTERFACE_INTROSPECTABLE.
(DBUS_INTERFACE_ORG_FREEDESKTOP_PROPERTIES): Rename to
DBUS_INTERFACE_PROPERTIES.
(DBUS_INTERFACE_ORG_FREEDESKTOP_PEER): Rename to
DBUS_INTERFACE_PEER.
(DBUS_INTERFACE_ORG_FREEDESKTOP_LOCAL):
DBUS_INTERFACE_LOCAL.

All other users of those constants have been changed.

* bus/driver.c (bus_driver_handle_introspect): Use constants.

* glib/dbus-gobject.c (handle_introspect): Use constants.

* doc/dbus-faq.xml, doc/dbus-specification.xml: Update for rename.
/external/dbus/dbus/dbus-message-factory.c
71f3b461b371d6bf7c7bc4e92578420b78d5c0d8 11-Feb-2005 Havoc Pennington <hp@redhat.com> 2005-02-10 Havoc Pennington <hp@redhat.com>

* dbus/dbus-message-factory.c (generate_special): modify test to
avoid using a non-basic dict key

* dbus/dbus-marshal-validate-util.c: add test for the below

* doc/dbus-specification.xml: require that dict keys are a basic
type

* dbus/dbus-marshal-validate.c
(_dbus_validate_signature_with_reason): require that dict key is a
basic type
/external/dbus/dbus/dbus-message-factory.c
96a47516321dea8c08e1ab15ac0102ce3c3ae3f1 06-Feb-2005 Havoc Pennington <hp@redhat.com> 2005-02-06 Havoc Pennington <hp@redhat.com>

* dbus/dbus-message-factory.c (generate_special): more tests

* dbus/dbus-marshal-validate.c (validate_body_helper): detect
array length that exceeds the maximum
/external/dbus/dbus/dbus-message-factory.c
8f04e1e01f51fa9bef564dbaf29be59694407d21 06-Feb-2005 Havoc Pennington <hp@redhat.com> 2005-02-05 Havoc Pennington <hp@redhat.com>

* dbus/dbus-message-factory.c (generate_special): more test cases,
increasing coverage

* dbus/dbus-marshal-validate.c (validate_body_helper): return the
reason why a signature was invalid

* dbus/dbus-marshal-header.c (load_and_validate_field): fix to
skip the length of the string before we look at it in validation

* dbus/dbus-string-util.c (_dbus_string_test): add tests for
equal_substring

* dbus/dbus-message.c (_dbus_message_loader_new): default
max_message_length to DBUS_MAXIMUM_MESSAGE_LENGTH
/external/dbus/dbus/dbus-message-factory.c
0e53d4eed36f378e99802e516fbb0d1355641902 05-Feb-2005 Havoc Pennington <hp@redhat.com> 2005-02-05 Havoc Pennington <hp@redhat.com>

* dbus/dbus-marshal-validate.c (validate_body_helper): fix crash
if the signature of a variant was empty
(_dbus_validate_signature_with_reason): catch "(a)" (array inside
struct with no element type)

* dbus/dbus-message-factory.c (generate_uint32_changed): add more
mangled messages to break things
/external/dbus/dbus/dbus-message-factory.c
72c433f80ba964f03688b61ff754b1c93d0fb4ad 24-Jan-2005 Havoc Pennington <hp@redhat.com> 2005-01-24 Havoc Pennington <hp@redhat.com>

* dbus/dbus-message-factory.c: more testing of message validation

* dbus/dbus-protocol.h (DBUS_MINIMUM_HEADER_SIZE): move to this
header
/external/dbus/dbus/dbus-message-factory.c
9d21554dd3b560952cd5aa607c4ec07898c0b260 23-Jan-2005 Havoc Pennington <hp@redhat.com> 2005-01-23 Havoc Pennington <hp@redhat.com>

* dbus/dbus-message-factory.c, dbus/dbus-message-util.c:
get this all working, not many tests in the framework yet though
/external/dbus/dbus/dbus-message-factory.c
330ae27487375e2feadb77e90930f3b250ed7952 23-Jan-2005 Havoc Pennington <hp@redhat.com> accidentally committed this stuff along with the doc changes, probably broken, will fix it soon
/external/dbus/dbus/dbus-message-factory.c