Description of Problem: If you call g_mem_set_vtable() then on a system with vasprintf() you will lose data if you call g_string_printf() with a '\0' byte in the data. Version-Release number of selected component (if applicable): glib2-2.0.1-2 How Reproducible: Always. Steps to Reproduce: 1. See attached program. 2. 3. Actual Results: attached source dies. Expected Results: should exit cleanly. Additional Information: I've also attached a patch to fix the problem.
Created attachment 74884 [details] Source of program to show bug.
Created attachment 74885 [details] Proposed patch.
Filed upstream as: http://bugzilla.gnome.org/show_bug.cgi?id=92492
Not going to fix this in advance of upstream.