Projects
home:rottame:vhosts-ng
imap-openssl_1_0_0
imap-2001a-overflow.diff
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File imap-2001a-overflow.diff of Package imap-openssl_1_0_0
Index: src/c-client/rfc822.c =================================================================== --- src/c-client/rfc822.c.orig +++ src/c-client/rfc822.c @@ -381,6 +381,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;
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.