summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrice Clement <monsieurp@gentoo.org>2019-03-29 09:28:50 +0100
committerPatrice Clement <monsieurp@gentoo.org>2019-03-29 09:29:11 +0100
commit8f11bfb27b252b05372a3c15a7f5842f12052f5f (patch)
tree97e30edebcc22db5de704c2708ff175f98309830 /mail-filter/procmail
parentsci-mathematics/why3-for-spark: remove unused patch (diff)
downloadgentoo-8f11bfb27b252b05372a3c15a7f5842f12052f5f.tar.gz
gentoo-8f11bfb27b252b05372a3c15a7f5842f12052f5f.tar.bz2
gentoo-8f11bfb27b252b05372a3c15a7f5842f12052f5f.zip
mail-filter/procmail: add back needed patch.
Closes: https://bugs.gentoo.org/681978 Signed-off-by: Patrice Clement <monsieurp@gentoo.org> Package-Manager: Portage-2.3.62, Repoman-2.3.11
Diffstat (limited to 'mail-filter/procmail')
-rw-r--r--mail-filter/procmail/files/procmail-CVE-2014-3618-16844.patch25
1 files changed, 25 insertions, 0 deletions
diff --git a/mail-filter/procmail/files/procmail-CVE-2014-3618-16844.patch b/mail-filter/procmail/files/procmail-CVE-2014-3618-16844.patch
new file mode 100644
index 000000000000..4f1714063c9e
--- /dev/null
+++ b/mail-filter/procmail/files/procmail-CVE-2014-3618-16844.patch
@@ -0,0 +1,25 @@
+--- a/src/formisc.c 2019-03-23 19:52:18.450174402 -0400
++++ b/src/formisc.c 2019-03-23 19:52:47.914351039 -0400
+@@ -84,12 +84,11 @@
+ case '"':*target++=delim='"';start++;
+ }
+ ;{ int i;
+- do
++ while(*start);
+ if((i= *target++= *start++)==delim) /* corresponding delimiter? */
+ break;
+ else if(i=='\\'&&*start) /* skip quoted character */
+ *target++= *start++;
+- while(*start); /* anything? */
+ }
+ hitspc=2;
+ }
+@@ -104,7 +103,7 @@
+ }
+ /* append to buf */
+ void loadbuf(text,len)const char*const text;const size_t len;
+-{ if(buffilled+len>buflen) /* buf can't hold the text */
++{ while(buffilled+len>buflen) /* buf can't hold the text */
+ buf=realloc(buf,buflen+=Bsize);
+ tmemmove(buf+buffilled,text,len);buffilled+=len;
+ }