1 |
commit: 8f11bfb27b252b05372a3c15a7f5842f12052f5f |
2 |
Author: Patrice Clement <monsieurp <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Mar 29 08:28:50 2019 +0000 |
4 |
Commit: Patrice Clement <monsieurp <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Mar 29 08:29:11 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8f11bfb2 |
7 |
|
8 |
mail-filter/procmail: add back needed patch. |
9 |
|
10 |
Closes: https://bugs.gentoo.org/681978 |
11 |
Signed-off-by: Patrice Clement <monsieurp <AT> gentoo.org> |
12 |
Package-Manager: Portage-2.3.62, Repoman-2.3.11 |
13 |
|
14 |
.../files/procmail-CVE-2014-3618-16844.patch | 25 ++++++++++++++++++++++ |
15 |
1 file changed, 25 insertions(+) |
16 |
|
17 |
diff --git a/mail-filter/procmail/files/procmail-CVE-2014-3618-16844.patch b/mail-filter/procmail/files/procmail-CVE-2014-3618-16844.patch |
18 |
new file mode 100644 |
19 |
index 00000000000..4f1714063c9 |
20 |
--- /dev/null |
21 |
+++ b/mail-filter/procmail/files/procmail-CVE-2014-3618-16844.patch |
22 |
@@ -0,0 +1,25 @@ |
23 |
+--- a/src/formisc.c 2019-03-23 19:52:18.450174402 -0400 |
24 |
++++ b/src/formisc.c 2019-03-23 19:52:47.914351039 -0400 |
25 |
+@@ -84,12 +84,11 @@ |
26 |
+ case '"':*target++=delim='"';start++; |
27 |
+ } |
28 |
+ ;{ int i; |
29 |
+- do |
30 |
++ while(*start); |
31 |
+ if((i= *target++= *start++)==delim) /* corresponding delimiter? */ |
32 |
+ break; |
33 |
+ else if(i=='\\'&&*start) /* skip quoted character */ |
34 |
+ *target++= *start++; |
35 |
+- while(*start); /* anything? */ |
36 |
+ } |
37 |
+ hitspc=2; |
38 |
+ } |
39 |
+@@ -104,7 +103,7 @@ |
40 |
+ } |
41 |
+ /* append to buf */ |
42 |
+ void loadbuf(text,len)const char*const text;const size_t len; |
43 |
+-{ if(buffilled+len>buflen) /* buf can't hold the text */ |
44 |
++{ while(buffilled+len>buflen) /* buf can't hold the text */ |
45 |
+ buf=realloc(buf,buflen+=Bsize); |
46 |
+ tmemmove(buf+buffilled,text,len);buffilled+=len; |
47 |
+ } |