[exim-dev] [Bug 1182] smtp_command variable uninitialised

Pàgina inicial
Delete this message
Reply to this message
Autor: Git Commit
Data:  
A: exim-dev
Assumptes vells: [exim-dev] [Bug 1182] New: smtp_command variable uninitialised
Assumpte: [exim-dev] [Bug 1182] smtp_command variable uninitialised
------- You are receiving this mail because: -------
You are on the CC list for the bug.

http://bugs.exim.org/show_bug.cgi?id=1182

Git Commit <git@???> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |git@???





--- Comment #1 from Git Commit <git@???> 2012-04-24 00:17:07 ---
Git commit:
http://git.exim.org/exim.git/commitdiff/2416c261306ff5e1248c5501b736b031a27367f5

commit 2416c261306ff5e1248c5501b736b031a27367f5
Author:     Jeremy Harris <jgh146exb@???>
AuthorDate: Mon Apr 23 23:57:47 2012 +0100
Commit:     Jeremy Harris <jgh146exb@???>
CommitDate: Mon Apr 23 23:57:47 2012 +0100


    Ensure $smtp_command is initialized before it can be expanded (bug 1182).
---
 src/src/smtp_in.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)


diff --git a/src/src/smtp_in.c b/src/src/smtp_in.c
index 476bbf0..23bc531 100644
--- a/src/src/smtp_in.c
+++ b/src/src/smtp_in.c
@@ -1396,6 +1396,7 @@ smtp_cmd_buffer = (uschar *)malloc(2*smtp_cmd_buffer_size
+ 2);
 if (smtp_cmd_buffer == NULL)
   log_write(0, LOG_MAIN|LOG_PANIC_DIE,
     "malloc() failed for SMTP command buffer");
+smtp_cmd_buffer[0] = 0;
 smtp_data_buffer = smtp_cmd_buffer + smtp_cmd_buffer_size + 1;


/* For batched input, the protocol setting can be overridden from the


--
Configure bugmail: http://bugs.exim.org/userprefs.cgi?tab=email