Subject: GLib 1.2 and packages depending on it
To: None <pkgsrc-users@NetBSD.org>
From: Christian Biere <christianbiere@gmx.de>
List: pkgsrc-users
Date: 05/06/2006 23:55:16
--7JfCtLOvnd9MIVvH
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Hi,

would be it be reasonable to mark GLib 1.2 and packages depending on
it as dangerous/problematic/whatever for non-32-bit systems? GLib 1.2
is deprecated according to the GLib developers, so nobody should be
using it anymore anyway. There are many size_t vs. int issues in
GLib 1.2. For example, see g_string_append() in gstring.c and note
that gsize is not an alias of size_t but blatantly hardcoded to
an unsigned 32-bit integer type in glib.h.

Thus, on a 64-bit machine with more than 2 GiB memory it's very easy
to trigger stack and heap overflows. GLib 2.0 cannot be used as a
drop-in replacement - prototypes but also the semantics of a few
functions have changed but it's usually easy to port them to it. The
same applies to software depending on Gtk+ 1.2.

--=20
Christian

--7JfCtLOvnd9MIVvH
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (NetBSD)

iD8DBQFEXRtD0KQix3oyIMcRAiC4AJ9ceeeFO+66efKsvnnRIn7XZuLAEQCeMjLi
rQ+/49mjs8s3ZpN1V6tIL70=
=hXhH
-----END PGP SIGNATURE-----

--7JfCtLOvnd9MIVvH--