SEGV in dbus-ping-send.c

Havoc Pennington hp at redhat.com
Tue Oct 23 09:25:32 PDT 2007


Hi,

This code is wrong:

   dbus_message_append_args (message,
                             DBUS_TYPE_STRING, "Ping!",
                             DBUS_TYPE_INVALID);

The string arg has to be the address of a string, not a string.

const char *v_STRING = "Ping!";

DBUS_TYPE_STRING, &v_STRING,
DBUS_TYPE_INVALID

Havoc




More information about the dbus mailing list