summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJeremy Harris <jgh146exb@wizmail.org>2023-03-04 22:55:01 +0000
committerJeremy Harris <jgh146exb@wizmail.org>2023-03-05 12:49:22 +0000
commitcfeaa009b9b407d8b404438afbf4c5d85d61e8c1 (patch)
tree59b2be51b82f952c755210a8ce0850d02336a0b3 /src
parentc5722bc5a8df130f4733ca3c4398ae51cc7842e0 (diff)
downloadexim4-cfeaa009b9b407d8b404438afbf4c5d85d61e8c1.tar.gz
Truncate overlong lines in DSNs. Bug 2979
Diffstat (limited to 'src')
-rw-r--r--src/src/deliver.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/src/deliver.c b/src/src/deliver.c
index d0e6d1c2e..9b77b3619 100644
--- a/src/src/deliver.c
+++ b/src/src/deliver.c
@@ -5370,6 +5370,11 @@ while (*s)
fprintf(f, "\n "); /* sic (because space follows) */
count = 0;
}
+ else if (count > 254) /* arbitrary limit */
+ {
+ fprintf(f, "[truncated]");
+ do s++; while (*s && !(*s == '\\' && s[1] == '\n'));
+ }
}
}