Little bug in dbus/dbus-sysdeps.c

Julien PUYDT julien.puydt at laposte.net
Thu Aug 4 03:02:17 EST 2005


Hi,

at line 895, there is:

   if (cmsg->hdr.cmsg_len < sizeof (cmsg) ...

but it should be:

   if (cmsg.hdr.cmsg_len < sizeof (cmsg) ...

since the declaration of cmsg is:

   struct {
           struct cmsghdr hdr;
           struct cmsgcred cred;
   } cmsg;

All of this is code in #ifdef HAVE_CMSGCRED #endif, so that may be the 
reason why it wasn't seen before.

Snark on #gnome-hackers


More information about the dbus mailing list