X-Git-Url: https://git.exim.org/exim.git/blobdiff_plain/09fc90fb92376b385a1b1aaf2613b3b1c7191284..a85c067ba6c6940512cf57ec213277a370d87e70:/src/src/routers/rf_get_munge_headers.c diff --git a/src/src/routers/rf_get_munge_headers.c b/src/src/routers/rf_get_munge_headers.c index 5f0bbc993..be86a4e0e 100644 --- a/src/src/routers/rf_get_munge_headers.c +++ b/src/src/routers/rf_get_munge_headers.c @@ -2,8 +2,10 @@ * Exim - an Internet mail transport agent * *************************************************/ +/* Copyright (c) The Exim Maintainers 2021 - 2022 */ /* Copyright (c) University of Cambridge 1995 - 2018 */ /* See the file NOTICE for conditions of use and distribution. */ +/* SPDX-License-Identifier: GPL-2.0-only */ #include "../exim.h" #include "rf_functions.h" @@ -59,7 +61,7 @@ if (rblock->extra_headers) shared with other addresses. The output function outputs them in reverse order. */ - header_line * h = store_get(sizeof(header_line), FALSE); + header_line * h = store_get(sizeof(header_line), GET_UNTAINTED); /* We used to use string_sprintf() to add the newline if needed, but that causes problems if the header line is exceedingly long (e.g. adding @@ -69,7 +71,7 @@ if (rblock->extra_headers) h->text = s; else { - h->text = store_get(slen+2, is_tainted(s)); + h->text = store_get(slen+2, s); memcpy(h->text, s, slen); h->text[slen++] = '\n'; h->text[slen] = 0;