Convert more cases of list-walking to use self-assigned memory for the list-item
[exim.git] / src / src / transports / appendfile.c
index 8ef1a564e741fe5408147f06af54861763ebd53c..93c89a4507a0ff945eec50b1f83a334d0e89468a 100644 (file)
@@ -644,7 +644,8 @@ if (len == 0) return tblock;
 
 /* Search the formats for a match */
 
-while ((s = string_nextinlist(&format,&sep,big_buffer,big_buffer_size)))
+/* not expanded so cannot be tainted */
+while ((s = string_nextinlist(&format, &sep, big_buffer, big_buffer_size)))
   {
   int slen = Ustrlen(s);
   BOOL match = len >= slen && Ustrncmp(data, s, slen) == 0;