Track tainted data and refuse to expand it
[exim.git] / src / src / mime.c
index cf537d7c187eed0d1879c1d4fdd828f900112224..d47b569827795cbfaeed88d6a47319c895bb4d77 100644 (file)
@@ -499,8 +499,8 @@ int rc = OK;
 uschar * header = NULL;
 struct mime_boundary_context nested_context;
 
-/* reserve a line buffer to work in */
-header = store_get(MIME_MAX_HEADER_SIZE+1);
+/* reserve a line buffer to work in.  Assume tainted data. */
+header = store_get(MIME_MAX_HEADER_SIZE+1, TRUE);
 
 /* Not actually used at the moment, but will be vital to fixing
  * some RFC 2046 nonconformance later... */