[exim-dev] [Bug 1152] Invalid format string for sprintf in l…

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Git Commit
Date:  
À: exim-dev
Sujet: [exim-dev] [Bug 1152] Invalid format string for sprintf in log_write
------- You are receiving this mail because: -------
You are on the CC list for the bug.

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

Git Commit <git@???> changed:

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





--- Comment #2 from Git Commit <git@???> 2011-10-06 01:17:05 ---
Git commit:
http://git.exim.org/exim.git/commitdiff/d690cbdcc1eae1eb60e83caf6800f768b733dadd

commit d690cbdcc1eae1eb60e83caf6800f768b733dadd
Author:     Phil Pennock <pdp@???>
AuthorDate: Wed Oct 5 19:36:34 2011 -0400
Commit:     Phil Pennock <pdp@???>
CommitDate: Wed Oct 5 19:36:34 2011 -0400


    Apply patch from Dmitry Isaikin fixing log.c format string.


    fixes bug 1152.
---
 doc/doc-txt/ChangeLog |    5 +++++
 src/src/log.c         |    2 +-
 2 files changed, 6 insertions(+), 1 deletions(-)


diff --git a/doc/doc-txt/ChangeLog b/doc/doc-txt/ChangeLog
index b58444a..9a518e9 100644
--- a/doc/doc-txt/ChangeLog
+++ b/doc/doc-txt/ChangeLog
@@ -123,6 +123,11 @@ PP/11 match_* no longer expand right-hand-side by default.

PP/12 fix uninitialised greeting string from PP/03 (smtps client support).

+PP/13 shell and compiler warnings fixes for RC1-RC3 changes.
+
+PP/14 fix log_write() format string regression from TF/03.
+      Bugzilla 1152.  Patch from Dmitry Isaikin.
+


 Exim version 4.76
 -----------------
diff --git a/src/src/log.c b/src/src/log.c
index fbab77c..a3ec18d 100644
--- a/src/src/log.c
+++ b/src/src/log.c
@@ -713,7 +713,7 @@ DEBUG(D_any|D_v)
       }
     }


-  sprintf(CS ptr, "%s%s%s%s%s\n  ",
+  sprintf(CS ptr, "%s%s%s%s\n  ",
     ((flags & LOG_MAIN) != 0)?    " MAIN"   : "",
     ((flags & LOG_PANIC) != 0)?   " PANIC"  : "",
     ((flags & LOG_PANIC_DIE) == LOG_PANIC_DIE)? " DIE" : "",



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