[exim-cvs] cvs commit: exim/exim-doc/doc-txt ChangeLog exim…

Startseite
Nachricht löschen
Nachricht beantworten
Autor: Nigel Metheringham
Datum:  
To: exim-cvs
Betreff: [exim-cvs] cvs commit: exim/exim-doc/doc-txt ChangeLog exim/exim-src/src malware.c parse.c sieve.c tls-openssl.c
nm4 2009/11/05 19:40:51 GMT

  Modified files:
    exim-doc/doc-txt     ChangeLog 
    exim-src/src         malware.c parse.c sieve.c tls-openssl.c 
  Log:
  Fix signed/unsigned and UTF errors  Fixes: #901


  Revision  Changes    Path
  1.587     +3 -0      exim/exim-doc/doc-txt/ChangeLog
  1.17      +1 -1      exim/exim-src/src/malware.c
  1.14      +3 -4      exim/exim-src/src/parse.c
  1.38      +5 -5      exim/exim-src/src/sieve.c
  1.21      +5 -5      exim/exim-src/src/tls-openssl.c


  Index: ChangeLog
  ===================================================================
  RCS file: /home/cvs/exim/exim-doc/doc-txt/ChangeLog,v
  retrieving revision 1.586
  retrieving revision 1.587
  diff -u -r1.586 -r1.587
  --- ChangeLog    5 Nov 2009 19:31:15 -0000    1.586
  +++ ChangeLog    5 Nov 2009 19:40:51 -0000    1.587
  @@ -1,4 +1,4 @@
  -$Cambridge: exim/exim-doc/doc-txt/ChangeLog,v 1.586 2009/11/05 19:31:15 nm4 Exp $
  +$Cambridge: exim/exim-doc/doc-txt/ChangeLog,v 1.587 2009/11/05 19:40:51 nm4 Exp $


   Change log file for Exim from version 4.21
   -------------------------------------------
  @@ -145,6 +145,9 @@
   NM/33 Bugzilla 898: Transport filter timeout fix
         Patch by Todd Rinaldo


  +NM/34 Bugzilla 901: Fix sign/unsigned and UTF mistmatches
  +      Patch by Serge Demonchaux
  +


Exim version 4.69
-----------------

  Index: malware.c
  ===================================================================
  RCS file: /home/cvs/exim/exim-src/src/malware.c,v
  retrieving revision 1.16
  retrieving revision 1.17
  diff -u -r1.16 -r1.17
  --- malware.c    27 Mar 2008 13:16:52 -0000    1.16
  +++ malware.c    5 Nov 2009 19:40:51 -0000    1.17
  @@ -1,4 +1,4 @@
  -/* $Cambridge: exim/exim-src/src/malware.c,v 1.16 2008/03/27 13:16:52 tom Exp $ */
  +/* $Cambridge: exim/exim-src/src/malware.c,v 1.17 2009/11/05 19:40:51 nm4 Exp $ */


   /*************************************************
   *     Exim - an Internet mail transport agent    *
  @@ -231,7 +231,7 @@
           if ( Ustrstr(buf, US"<detected type=\"") != NULL ) {
             detected = 1;
           } else if ( detected && (strhelper = Ustrstr(buf, US"<name>")) ) {
  -          if (strhelper2 = Ustrstr(buf, US"</name>")) {
  +          if (strhelper2 = (Ustrstr(buf, US"</name>"))) {
               *strhelper2 = '\0';
               Ustrcpy(malware_name_buffer, strhelper + 6);
             }


  Index: parse.c
  ===================================================================
  RCS file: /home/cvs/exim/exim-src/src/parse.c,v
  retrieving revision 1.13
  retrieving revision 1.14
  diff -u -r1.13 -r1.14
  --- parse.c    6 Jun 2008 14:40:21 -0000    1.13
  +++ parse.c    5 Nov 2009 19:40:51 -0000    1.14
  @@ -1,4 +1,4 @@
  -/* $Cambridge: exim/exim-src/src/parse.c,v 1.13 2008/06/06 14:40:21 michael Exp $ */
  +/* $Cambridge: exim/exim-src/src/parse.c,v 1.14 2009/11/05 19:40:51 nm4 Exp $ */


   /*************************************************
   *     Exim - an Internet mail transport agent    *
  @@ -1775,8 +1775,7 @@
   obs-day-of-week =       [CFWS] day-name [CFWS]
   */


-uschar *o;
-static const uschar *day_name[7]={ "mon", "tue", "wed", "thu", "fri", "sat", "sun" };
+static const uschar *day_name[7]={ US"mon", US"tue", US"wed", US"thu", US"fri", US"sat", US"sun" };
int i;
uschar day[4];

  @@ -1787,7 +1786,7 @@
     ++str;
     }
   day[3]='\0';
  -for (i=0; i<7; ++i) if (strcmp(day,day_name[i])==0) break;
  +for (i=0; i<7; ++i) if (Ustrcmp(day,day_name[i])==0) break;
   if (i==7) return NULL;
   str=skip_comment(str);
   return str;
  @@ -1834,7 +1833,7 @@
   */


uschar *c,*n;
-static const uschar *month_name[]={ "jan", "feb", "mar", "apr", "may", "jun", "jul", "aug", "sep", "oct", "nov", "dec" };
+static const uschar *month_name[]={ US"jan", US"feb", US"mar", US"apr", US"may", US"jun", US"jul", US"aug", US"sep", US"oct", US"nov", US"dec" };
int i;
uschar month[4];


  Index: sieve.c
  ===================================================================
  RCS file: /home/cvs/exim/exim-src/src/sieve.c,v
  retrieving revision 1.37
  retrieving revision 1.38
  diff -u -r1.37 -r1.38
  --- sieve.c    4 Feb 2009 11:31:13 -0000    1.37
  +++ sieve.c    5 Nov 2009 19:40:51 -0000    1.38
  @@ -1,4 +1,4 @@
  -/* $Cambridge: exim/exim-src/src/sieve.c,v 1.37 2009/02/04 11:31:13 michael Exp $ */
  +/* $Cambridge: exim/exim-src/src/sieve.c,v 1.38 2009/11/05 19:40:51 nm4 Exp $ */


   /*************************************************
   *     Exim - an Internet mail transport agent    *
  @@ -2971,7 +2971,7 @@
       subject.character=(uschar*)0;
       body.length=-1;
       body.character=(uschar*)0;
  -    envelope_from=(sender_address && sender_address[0]) ? expand_string("$local_part_prefix$local_part$local_part_suffix@$domain") : US "";
  +    envelope_from=(sender_address && sender_address[0]) ? expand_string(US"$local_part_prefix$local_part$local_part_suffix@$domain") : US "";
       for (;;)
         {
         if (parse_white(filter)==-1) return -1;
  @@ -3038,11 +3038,11 @@
           for (already=filter->notified; already; already=already->next)
             {
             if (already->method.length==method.length
  -              && (method.length==-1 || strcmp(already->method.character,method.character)==0)
  +              && (method.length==-1 || Ustrcmp(already->method.character,method.character)==0)
                 && already->importance.length==importance.length
  -              && (importance.length==-1 || strcmp(already->importance.character,importance.character)==0)
  +              && (importance.length==-1 || Ustrcmp(already->importance.character,importance.character)==0)
                 && already->message.length==message.length
  -              && (message.length==-1 || strcmp(already->message.character,message.character)==0))
  +              && (message.length==-1 || Ustrcmp(already->message.character,message.character)==0))
               break;
             }
           if (already==(struct Notification*)0)
  @@ -3068,7 +3068,7 @@
                 int buffer_capacity;


                 f = fdopen(fd, "wb");
  -              fprintf(f,"From: %s\n",from.length==-1 ? expand_string("$local_part_prefix$local_part$local_part_suffix@$domain") : from.character);
  +              fprintf(f,"From: %s\n",from.length==-1 ? expand_string(US"$local_part_prefix$local_part$local_part_suffix@$domain") : from.character);
                 for (p=recipient; p; p=p->next) fprintf(f,"To: %s\n",p->text);
                 fprintf(f,"Auto-Submitted: auto-notified; %s\n",filter->enotify_mailto_owner);
                 if (header.length>0) fprintf(f,"%s",header.character);


  Index: tls-openssl.c
  ===================================================================
  RCS file: /home/cvs/exim/exim-src/src/tls-openssl.c,v
  retrieving revision 1.20
  retrieving revision 1.21
  diff -u -r1.20 -r1.21
  --- tls-openssl.c    19 Oct 2009 11:25:31 -0000    1.20
  +++ tls-openssl.c    5 Nov 2009 19:40:51 -0000    1.21
  @@ -1,4 +1,4 @@
  -/* $Cambridge: exim/exim-src/src/tls-openssl.c,v 1.20 2009/10/19 11:25:31 nm4 Exp $ */
  +/* $Cambridge: exim/exim-src/src/tls-openssl.c,v 1.21 2009/11/05 19:40:51 nm4 Exp $ */


   /*************************************************
   *     Exim - an Internet mail transport agent    *
  @@ -73,13 +73,13 @@
   if (msg == NULL)
     {
     ERR_error_string(ERR_get_error(), ssl_errstring);
  -  msg = ssl_errstring;
  +  msg = (uschar *)ssl_errstring;
     }


   if (host == NULL)
     {
     uschar *conn_info = smtp_get_connection_info();
  -  if (strncmp(conn_info, "SMTP ", 5) == 0)
  +  if (Ustrncmp(conn_info, US"SMTP ", 5) == 0)
       conn_info += 5;
     log_write(0, LOG_MAIN, "TLS error on %s (%s): %s",
       conn_info, prefix, msg);
  @@ -253,7 +253,7 @@
   if ((bio = BIO_new_file(CS dhexpanded, "r")) == NULL)
     {
     tls_error(string_sprintf("could not read dhparams file %s", dhexpanded),
  -    host, strerror(errno));
  +    host, (uschar *)strerror(errno));
     yield = FALSE;
     }
   else
  @@ -338,7 +338,7 @@


     if (!RAND_status())
       return tls_error(US"RAND_status", host,
  -      "unable to seed random number generator");
  +      US"unable to seed random number generator");
     }


/* Set up the information callback, which outputs if debugging is at a suitable
@@ -621,7 +621,7 @@

   if (tls_active >= 0)
     {
  -  tls_error("STARTTLS received after TLS started", NULL, "");
  +  tls_error(US"STARTTLS received after TLS started", NULL, US"");
     smtp_printf("554 Already in TLS\r\n");
     return FAIL;
     }