Blame SOURCES/procmail-3.22-CVE-2017-16844.patch

99c6da
diff --git a/src/formisc.c b/src/formisc.c
99c6da
index 5c2869d..54fd013 100644
99c6da
--- a/src/formisc.c
99c6da
+++ b/src/formisc.c
99c6da
@@ -103,7 +103,7 @@ void loadsaved(sp)const struct saved*const sp;	     /* load some saved text */
99c6da
 }
99c6da
 							    /* append to buf */
99c6da
 void loadbuf(text,len)const char*const text;const size_t len;
99c6da
-{ if(buffilled+len>buflen)			  /* buf can't hold the text */
99c6da
+{ while(buffilled+len>buflen)			  /* buf can't hold the text */
99c6da
      buf=realloc(buf,buflen+=Bsize);
99c6da
   tmemmove(buf+buffilled,text,len);buffilled+=len;
99c6da
 }