Taint: track in ${utf8clean:} operator
[exim.git] / src / src / functions.h
index df4b33606982b574322c3f5c9127ad3160ba2ddf..851cedd3f8ac42816686b8c050195117867a4806 100644 (file)
@@ -919,6 +919,18 @@ va_end(ap);
 return g;
 }
 
+
+/* Copy the content of a string to tainted memory */
+
+static inline void
+gstring_rebuffer(gstring * g)
+{
+uschar * s = store_get(g->size, TRUE);
+memcpy(s, g->s, g->ptr);
+g->s = s;
+}
+
+
 /******************************************************************************/
 
 #define store_get_dns_answer() store_get_dns_answer_trc(CUS __FUNCTION__, __LINE__)