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
Convert more cases of list-walking to use self-assigned memory for the list-item
[exim.git]
/
src
/
src
/
receive.c
diff --git
a/src/src/receive.c
b/src/src/receive.c
index 95c44c01ca064bcf3e0ba6f8fb0297f2a2d85762..00c431fc8934e688e93560e550f8c20468322a7d 100644
(file)
--- a/
src/src/receive.c
+++ b/
src/src/receive.c
@@
-176,6
+176,7
@@
else
empty item in a list. */
if (*p == 0) p = US":";
empty item in a list. */
if (*p == 0) p = US":";
+ /* should never be a tainted list */
while ((path = string_nextinlist(&p, &sep, buffer, sizeof(buffer))))
if (Ustrcmp(path, "syslog") != 0)
break;
while ((path = string_nextinlist(&p, &sep, buffer, sizeof(buffer))))
if (Ustrcmp(path, "syslog") != 0)
break;
@@
-1228,9
+1229,8
@@
if (acl_removed_headers)
const uschar * list = acl_removed_headers;
int sep = ':'; /* This is specified as a colon-separated list */
uschar *s;
const uschar * list = acl_removed_headers;
int sep = ':'; /* This is specified as a colon-separated list */
uschar *s;
- uschar buffer[128];
- while ((s = string_nextinlist(&list, &sep,
buffer, sizeof(buffer)
)))
+ while ((s = string_nextinlist(&list, &sep,
NULL, 0
)))
if (header_testname(h, s, Ustrlen(s), FALSE))
{
h->type = htype_old;
if (header_testname(h, s, Ustrlen(s), FALSE))
{
h->type = htype_old;