GNOME Bugzilla – Bug 627969
ABR in g_file_open_tmp
Last modified: 2010-08-26 00:07:18 UTC
The code fragment below will access memory it doesn't own if tmpdir is the empty string. (tmpdir shouldn't be empty, but can be if the environment is set appropriately.) tmpdir = g_get_tmp_dir (); if (G_IS_DIR_SEPARATOR (tmpdir [strlen (tmpdir) - 1]))
Right. g_get_any_init_do should not accept an empty string for g_tmp_dir
I've made it so