Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37408517
en ru br
ALT Linux repos
5.0: 4.64L-alt5.1
4.1: 4.64L-alt5
4.0: 4.64L-alt4.1
3.0: 4.58L-alt4
+backports:4.64L-alt0.M30.4

Group :: Networking/Mail
RPM: pine

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Patch: uw-imap-2001a-overflow.patch
Download


--- imap/src/c-client/rfc822.c.bug	Wed Apr 17 19:13:22 2002
+++ imap/src/c-client/rfc822.c	Wed Apr 17 19:20:06 2002
@@ -610,6 +610,9 @@
 	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-- && ((c = SNX (bs)) == '-') && i-- && ((c = SNX (bs)) == '-')) {
 				/* see if cookie matches */
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin