Padding at the end of message body?
jean.parpaillon at free.fr
Mon May 30 19:57:57 UTC 2016
fyi, you can find a pure erlang implementation of D-Bus at:
Parsing/serializing is done in the dbus_marshaller module.
Le lundi 30 mai 2016 à 20:56 +0100, Simon McVittie a écrit :
> On 30/05/16 18:14, marcin at saepia.net wrote:
> > The message sometimes contains a bunch of null bytes after the body
> > The specification says "The message body need not end on an 8-byte
> > boundary." but "need not" does not equal "must not".
> Please check how the reference implementation (libdbus) would
> those bytes: as an accepted-and-discarded part of the message you
> quoted, as padding between messages, or as part of the next message.
> Whichever interpretation it would use, you can consider that to be
> correct. A patch to dbus-specification.xml contributed via
> clarifying which one is meant would also be appreciated.
> The reference dbus-daemon will usually disconnect clients that send
> anything that is considered malformed. If it doesn't, either that
> content is not considered malformed, or the reference dbus-daemon has
> a bug.
Open Source Consultant
Director @ OW2 Consortium
OCCIware Strategic Orientation Committee Chairman
Research Engineer @ Inria
Phone: +33 6 30 10 92 86
im: jean.parpaillon at gmail.com
More information about the dbus