Mailing List Archive

[Bug 3070] New: exim 4.97 crashes with SIGSEGV using option -oMt

Bug ID: 3070
Summary: exim 4.97 crashes with SIGSEGV using option -oMt
Product: Exim
Version: 4.97
Hardware: x86-64
OS: Linux
Status: NEW
Severity: bug
Priority: medium
Component: General execution

Exim 4.97 crashes while logging if invoked with option -oMt "". It works
without problems in exim 4.95 and logs "NULL" in this case.

Could be reproduced by:

swaks --pipe 'exim -bs -oMt ""' -f nobody@example.test -t nobody@example.text

For me the following patch fixed the problem:

diff --git a/src/src/smtp_in.c b/src/src/smtp_in.c
index cdc457a39..ccd89858a 100644
--- a/src/src/smtp_in.c
+++ b/src/src/smtp_in.c
@@ -1352,7 +1352,7 @@ if (host_checking)
g = string_cat(g, hostname);

else if (f.sender_host_unknown || f.sender_host_notsocket)
- g = string_cat(g, sender_ident);
+ g = string_cat(g, sender_ident ? sender_ident : US"NULL");

else if (f.is_inetd)
g = string_append(g, 2, hostname, US" (via inetd)");

You are receiving this mail because:
You are on the CC list for the bug.

## subscription configuration (requires account):
## unsubscribe (doesn't require an account):
## Exim details at
## Please use the Wiki with this list -