[exim-cvs] cvs commit: exim/exim-src/src mime.c

Pàgina inicial
Delete this message
Reply to this message
Autor: Tom Kistner
Data:  
A: exim-cvs
Assumpte: [exim-cvs] cvs commit: exim/exim-src/src mime.c
tom 2005/08/16 13:32:32 BST

  Modified files:
    exim-src/src         mime.c 
  Log:
  Bugzilla 35: Fix buffer underrun when EOF condition occurs while reading a MIME header


  Revision  Changes    Path
  1.12      +1 -1      exim/exim-src/src/mime.c


  Index: mime.c
  ===================================================================
  RCS file: /home/cvs/exim/exim-src/src/mime.c,v
  retrieving revision 1.11
  retrieving revision 1.12
  diff -u -r1.11 -r1.12
  --- mime.c    2 Aug 2005 09:42:24 -0000    1.11
  +++ mime.c    16 Aug 2005 12:32:32 -0000    1.12
  @@ -1,4 +1,4 @@
  -/* $Cambridge: exim/exim-src/src/mime.c,v 1.11 2005/08/02 09:42:24 tom Exp $ */
  +/* $Cambridge: exim/exim-src/src/mime.c,v 1.12 2005/08/16 12:32:32 tom Exp $ */


   /*************************************************
   *     Exim - an Internet mail transport agent    *
  @@ -484,7 +484,7 @@
       };
     };


  -  if (header[num_copied-1] != ';') {
  +  if ((num_copied > 0) && (header[num_copied-1] != ';')) {
       header[num_copied-1] = ';';
     };