[guus@debian.org: Bug#290306: dbus-1-dev: silly typedefs]

Guus Sliepen guus@sliepen.eu.org
Thu Jan 13 13:32:56 PST 2005


On Thu, Jan 13, 2005 at 03:59:28PM -0500, Havoc Pennington wrote:

> The "emulate glibc if it's not there" approach isn't used much in
> desktop software, we usually use the "portable wrappers" approach as
> with Qt and GLib. I don't think that debate is very on-topic for this
> list, but it extends well beyond typedefs. See dbus-sysdeps.h, or all of
> GLib/Qt

Well I see why you would use guint16 for the GLib interface, but for the
plain C interface I can't see why you'd want to invent new types. Also,
uint16_t and related types are not glibc, but part of the C99 standard,
and have been in use long before that standard.

> Even outside of software, see vsftpd for example and their secure coding
> guidelines which include wrapping all system headers/functions as a
> guideline.

Sure, but as you can see, the current typedefs could well be the cause
of a security hole on another architecture. The blind wrapping done in
dbus-types.h is detrimental to security.

-- 
Met vriendelijke groet / with kind regards,
    Guus Sliepen <guus@sliepen.eu.org>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.freedesktop.org/archives/dbus/attachments/20050113/93bd796f/attachment-0001.pgp


More information about the dbus mailing list