Package: postal
Version: 0.73+nmu1
Severity: important

I can't run Postal for more than a few minutes before it crashes. Fix included 
below.

diff -ru postal-0.73/smtp.cpp ../postal-0.73+nmu1/smtp.cpp
--- postal-0.73/smtp.cpp        2012-01-14 14:38:45.000000000 +0200
+++ ../postal-0.73+nmu1/smtp.cpp        2015-02-13 13:36:06.583435283 +0200
@@ -77,7 +77,8 @@
     int offset = random() % (MAP_SIZE - (len - 2));
     memcpy(buf, &m_randBuf[offset], len - 2);
   }
-  strcpy(buf + len - 2, "\r\n");
+  if (len >= 2)
+    strcpy(buf + len - 2, "\r\n");
 }

 const int max_line_len = 79;

--
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