diff options
author | Remi Collet <remi@remirepo.net> | 2021-02-24 14:56:09 +0100 |
---|---|---|
committer | Remi Collet <remi@remirepo.net> | 2021-02-24 14:56:09 +0100 |
commit | 03290a345a76dfc0d504b2083b2e28223ea67e43 (patch) | |
tree | a7cc1835db0c79e9bbd9fa583e942f5c9d080743 /imap-2007e-overflow.patch |
Import from Fedora
Diffstat (limited to 'imap-2007e-overflow.patch')
-rw-r--r-- | imap-2007e-overflow.patch | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/imap-2007e-overflow.patch b/imap-2007e-overflow.patch new file mode 100644 index 0000000..86512b2 --- /dev/null +++ b/imap-2007e-overflow.patch @@ -0,0 +1,13 @@ +diff -up imap-2007e/src/c-client/rfc822.c.overflow imap-2007e/src/c-client/rfc822.c +--- imap-2007e/src/c-client/rfc822.c.overflow 2008-12-12 11:08:26.000000000 -0600 ++++ imap-2007e/src/c-client/rfc822.c 2009-07-07 19:27:20.057772757 -0500 +@@ -384,6 +384,9 @@ void rfc822_parse_content (BODY *body,ST + if (CHR (bs) == '\012'){/* following LF? */ + c = SNX (bs); i--; /* yes, slurp it */ + } ++ if (!i) /* Make sure we don't get an overflow for */ ++ break; /* messages ending on \015 (or the following */ ++ /* i-- will cause i to be MAXINT. Not good.) */ + case '\012': /* at start of a line, start with -- ? */ + if (!(i && i-- && ((c = SNX (bs)) == '-') && i-- && + ((c = SNX (bs)) == '-'))) break; |