summaryrefslogtreecommitdiffstats
path: root/main/alpine/CVE-2008-5514.patch
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2010-08-25 13:19:30 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2010-08-25 13:27:36 +0000
commit822da8766c0169475e70dc291a297a8f3a18e4d6 (patch)
tree75fb9d6b7a13515649b7877baa6cd80319ce0054 /main/alpine/CVE-2008-5514.patch
parent9cd0653df5eb4f571a92e48322cec98c8fd7f97e (diff)
downloadaports-822da8766c0169475e70dc291a297a8f3a18e4d6.tar.bz2
aports-822da8766c0169475e70dc291a297a8f3a18e4d6.tar.xz
main/alpine: new aport
Text-based email client, friendly for novices but powerful http://www.washington.edu/alpine/
Diffstat (limited to 'main/alpine/CVE-2008-5514.patch')
-rw-r--r--main/alpine/CVE-2008-5514.patch20
1 files changed, 20 insertions, 0 deletions
diff --git a/main/alpine/CVE-2008-5514.patch b/main/alpine/CVE-2008-5514.patch
new file mode 100644
index 000000000..594bea0b2
--- /dev/null
+++ b/main/alpine/CVE-2008-5514.patch
@@ -0,0 +1,20 @@
+--- alpine-2.00/imap/src/c-client/rfc822.c
++++ alpine-2.00/imap/src/c-client/rfc822.c
+@@ -1351,6 +1351,7 @@
+
+ static long rfc822_output_char (RFC822BUFFER *buf,int c)
+ {
++ if ((buf->cur == buf->end) && !rfc822_output_flush (buf)) return NIL;
+ *buf->cur++ = c; /* add character, soutr buffer if full */
+ return (buf->cur == buf->end) ? rfc822_output_flush (buf) : LONGT;
+ }
+@@ -1374,7 +1375,8 @@
+ len -= i;
+ }
+ /* soutr buffer now if full */
+- if (len && !rfc822_output_flush (buf)) return NIL;
++ if ((len || (buf->cur == buf->end)) && !rfc822_output_flush (buf))
++ return NIL;
+ }
+ return LONGT;
+ }