[exim-dev] [Bug 3070] New: exim 4.97 crashes with SIGSEGV us…

Αρχική Σελίδα
Delete this message
Reply to this message
Συντάκτης: Exim Bugzilla
Ημερομηνία:  
Προς: exim-dev
Καινούρια Θέματα: [exim-dev] [Bug 3070] exim 4.97 crashes with SIGSEGV using option -oMt, [exim-dev] [Bug 3070] exim 4.97 crashes with SIGSEGV using option -oMt
Αντικείμενο: [exim-dev] [Bug 3070] New: exim 4.97 crashes with SIGSEGV using option -oMt
https://bugs.exim.org/show_bug.cgi?id=3070

            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
          Assignee: unallocated@???
          Reporter: exim@???
                CC: exim-dev@???


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@??? -t nobody@???

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):
## https://lists.exim.org/mailman3/postorius/lists/exim-dev.lists.exim.org/
## unsubscribe (doesn't require an account):
## exim-dev-unsubscribe@???
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/