components/mutt/patches/16390278-parfait.patch
author Stacy Yeh <stacy.yeh@oracle.com>
Mon, 31 Aug 2015 13:48:06 -0700
changeset 4831 20f6eb6fe1fc
parent 1174 5ac53682aef3
permissions -rw-r--r--
21755905 libpcap needs license.pcap file updated
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1174
5ac53682aef3 16390278 parfait issues in mutt
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
     1
# These patches have been accepted upstream and should thus be removed upon
5ac53682aef3 16390278 parfait issues in mutt
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
     2
# the next upgrade; details in the bug report.
5ac53682aef3 16390278 parfait issues in mutt
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
     3
--- mutt-1.5.21/rfc1524.c.orig	Mon Mar  1 09:56:19 2010
5ac53682aef3 16390278 parfait issues in mutt
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
     4
+++ mutt-1.5.21/rfc1524.c	Thu Feb 21 13:05:24 2013
5ac53682aef3 16390278 parfait issues in mutt
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
     5
@@ -68,7 +68,7 @@
5ac53682aef3 16390278 parfait issues in mutt
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
     6
   if (option (OPTMAILCAPSANITIZE))
5ac53682aef3 16390278 parfait issues in mutt
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
     7
     mutt_sanitize_filename (type, 0);
5ac53682aef3 16390278 parfait issues in mutt
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
     8
 
5ac53682aef3 16390278 parfait issues in mutt
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
     9
-  while (x < clen && command[x] && y < sizeof (buf) - 1)
5ac53682aef3 16390278 parfait issues in mutt
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    10
+  while (x < clen - 1 && command[x] && y < sizeof (buf) - 1)
5ac53682aef3 16390278 parfait issues in mutt
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    11
   {
5ac53682aef3 16390278 parfait issues in mutt
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    12
     if (command[x] == '\\')
5ac53682aef3 16390278 parfait issues in mutt
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    13
     {
5ac53682aef3 16390278 parfait issues in mutt
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    14
--- mutt-1.5.21/sendlib.c.orig	Mon Sep 13 10:19:55 2010
5ac53682aef3 16390278 parfait issues in mutt
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    15
+++ mutt-1.5.21/sendlib.c	Thu Feb 21 13:27:42 2013
5ac53682aef3 16390278 parfait issues in mutt
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    16
@@ -1664,7 +1664,7 @@
5ac53682aef3 16390278 parfait issues in mutt
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    17
     /* find the next word and place it in `buf'. it may start with
5ac53682aef3 16390278 parfait issues in mutt
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    18
      * whitespace we can fold before */
5ac53682aef3 16390278 parfait issues in mutt
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    19
     next = find_word (p);
5ac53682aef3 16390278 parfait issues in mutt
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    20
-    l = MIN(sizeof (buf), next - p);
5ac53682aef3 16390278 parfait issues in mutt
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    21
+    l = MIN(sizeof (buf) - 1, next - p);
5ac53682aef3 16390278 parfait issues in mutt
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    22
     memcpy (buf, p, l);
5ac53682aef3 16390278 parfait issues in mutt
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    23
     buf[l] = 0;
5ac53682aef3 16390278 parfait issues in mutt
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    24
 
5ac53682aef3 16390278 parfait issues in mutt
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    25
--- mutt-1.5.21/smime.c.orig	Mon Sep 13 10:19:55 2010
5ac53682aef3 16390278 parfait issues in mutt
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    26
+++ mutt-1.5.21/smime.c	Fri Feb 22 04:17:00 2013
5ac53682aef3 16390278 parfait issues in mutt
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    27
@@ -357,7 +357,7 @@
5ac53682aef3 16390278 parfait issues in mutt
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    28
   char index_file[_POSIX_PATH_MAX];
5ac53682aef3 16390278 parfait issues in mutt
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    29
   FILE *index;
5ac53682aef3 16390278 parfait issues in mutt
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    30
   char buf[LONG_STRING];
5ac53682aef3 16390278 parfait issues in mutt
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    31
-  char fields[5][STRING];
5ac53682aef3 16390278 parfait issues in mutt
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    32
+  char fields[5][STRING+1]; /* +1 due to use of fscanf() below. the max field width does not include the null terminator (see http://dev.mutt.org/trac/ticket/3636) */
5ac53682aef3 16390278 parfait issues in mutt
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    33
   int numFields, hash_suffix, done, cur; /* The current entry */
5ac53682aef3 16390278 parfait issues in mutt
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    34
   MUTTMENU* menu;
5ac53682aef3 16390278 parfait issues in mutt
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    35
   unsigned int hash;
5ac53682aef3 16390278 parfait issues in mutt
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    36
@@ -470,7 +470,7 @@
5ac53682aef3 16390278 parfait issues in mutt
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    37
   int addr_len, query_len, found = 0, ask = 0, choice = 0;
5ac53682aef3 16390278 parfait issues in mutt
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    38
   char cert_path[_POSIX_PATH_MAX];
5ac53682aef3 16390278 parfait issues in mutt
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    39
   char buf[LONG_STRING], prompt[STRING];
5ac53682aef3 16390278 parfait issues in mutt
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    40
-  char fields[5][STRING];
5ac53682aef3 16390278 parfait issues in mutt
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    41
+  char fields[5][STRING+1]; /* +1 due to use of fscanf() below. the max field width does not include the null terminator (see http://dev.mutt.org/trac/ticket/3636) */
5ac53682aef3 16390278 parfait issues in mutt
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    42
   char key[STRING];  
5ac53682aef3 16390278 parfait issues in mutt
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    43
   int numFields;
5ac53682aef3 16390278 parfait issues in mutt
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    44
   struct stat info;