Allow negative values for g_string_overwrite_len len param
Submitted by Evan Nemerson
Link to original bug (#694001)
Description
Created attachment 236425 GString: use strlen(val) if len < 0 instead of doing nothing
g_string_overwrite_len will currently do nothing if len < 0, which doesn't match g_string_insert_len or most of the other functions in glib, which will use strlen(val). g_string_overwrite_len already contains code to use strlen(val) if len < 0, but it is executed after a check which will return when len < 0.
Patch 236425, "GString: use strlen(val) if len < 0 instead of doing nothing":
0001-GString-use-strlen-val-if-len-0-instead-of-doing-not.patch