git://git.exim.org
/
exim.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
tidying
[exim.git]
/
src
/
src
/
filtertest.c
diff --git
a/src/src/filtertest.c
b/src/src/filtertest.c
index 3b4752ea5568b655460c0aaf79d2f64a10144740..2426f7feb2e97fa957bc671f50e82e935306167b 100644
(file)
--- a/
src/src/filtertest.c
+++ b/
src/src/filtertest.c
@@
-2,8
+2,10
@@
* Exim - an Internet mail transport agent *
*************************************************/
* Exim - an Internet mail transport agent *
*************************************************/
+/* Copyright (c) The Exim Maintainers 2021 - 2022 */
/* Copyright (c) University of Cambridge 1995 - 2009 */
/* See the file NOTICE for conditions of use and distribution. */
/* Copyright (c) University of Cambridge 1995 - 2009 */
/* See the file NOTICE for conditions of use and distribution. */
+/* SPDX-License-Identifier: GPL-2.0-or-later */
/* Code for the filter test function. */
/* Code for the filter test function. */
@@
-113,7
+115,7
@@
if (body_len >= message_body_visible)
int above = message_body_visible - below;
if (above > 0)
{
int above = message_body_visible - below;
if (above > 0)
{
- uschar *
temp = store_get(below, TRUE
);
+ uschar *
temp = store_get(below, GET_UNTAINTED
);
memcpy(temp, message_body_end, below);
memmove(message_body_end, s+1, above);
memcpy(message_body_end + above, temp, below);
memcpy(temp, message_body_end, below);
memmove(message_body_end, s+1, above);
memcpy(message_body_end + above, temp, below);
@@
-179,7
+181,7
@@
if (fstat(fd, &statbuf) != 0)
return FALSE;
}
return FALSE;
}
-filebuf = store_get(statbuf.st_size + 1,
is_tainted(filename)
);
+filebuf = store_get(statbuf.st_size + 1,
filename
);
rc = read(fd, filebuf, statbuf.st_size);
(void)close(fd);
rc = read(fd, filebuf, statbuf.st_size);
(void)close(fd);