GNOME Bugzilla – Bug 590997
_g_gnulib_vasprintf() chokes on "%.24x" format string
Last modified: 2018-05-24 11:57:42 UTC
The vasprintf() implementation that ships with GLib in the gnulib directory crashes on the following code: g_snprintf (buf, 128, "%.24x", 0); This works fine with the glibc implementation, but we ran into this crash when using gupnp-av on an embedded platform with uCLibc. There the GLib internal printf implementation is used.
Created attachment 140059 [details] [review] test case for this problem This patch adds a test-case for this format string. The test passes on a glibc system, but leads to a crash on the mentioned uCLibc system where the implementation from glib/gnulib/vasprintf.c is being used.
-- GitLab Migration Automatic Message -- This bug has been migrated to GNOME's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/glib/issues/238.