10-fix_potential_overflows.dpatch

Patrick Goetz pgoetz at mail.utexas.edu
Fri Jul 9 20:58:20 UTC 2010


Can someone, maybe Sven, take a look at this patch?  This can't possibly 
be right:

--- git~/imap/message.c 2010-01-16 19:22:57.000000000 -0200
+++ git/imap/message.c  2010-01-16 19:27:30.915091898 -0200
@@ -996,7 +996,7 @@
      /* Save header value */
      len = hdrend - hdr;
      message_ibuf_ensure(ibuf, len+2);
-    strncpy(ibuf->end, hdr, len);
+    strncpy(ibuf->end, hdr, len+1);
      ibuf->end += len;
      *(ibuf->end)++ = '\r';
      *(ibuf->end)++ = '\n';




More information about the Pkg-Cyrus-imapd-Debian-devel mailing list