tag 650265 +patch
thanks

This should go into stable too if possible.

Description: Read reponse from smtp server up to crlf
Author: Miquel van Smoorenburg <miqu...@cistron.nl>
Last-Update: 2011-11-28

--- a/net.c     2011-11-28 12:27:29.000000000 +0100
+++ b/net.c     2011-11-28 13:00:39.145291582 +0100
@@ -166,6 +166,14 @@
                        }
                        len += rlen;
                }
+               /* read up to \n */
+               if (memchr(buff + pos, '\n', len - pos) == NULL) {
+                       if (len < sizeof(buff))
+                               continue;
+                       strcpy(neterr, "line too long in reply from server");
+                       return (-1);
+               }
+
                /*
                 * If there is an external buffer with a size bigger than zero
                 * and as long as there is space in the external buffer and



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to