You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12 lines
538 B

  1. --- a/src/c-client/rfc822.c
  2. +++ b/src/c-client/rfc822.c
  3. @@ -384,6 +384,9 @@ void rfc822_parse_content (BODY *body,ST
  4. if (CHR (bs) == '\012'){/* following LF? */
  5. c = SNX (bs); i--; /* yes, slurp it */
  6. }
  7. + if (!i) /* Make sure we don't get an overflow for */
  8. + break; /* messages ending on \015 (or the following */
  9. + /* i-- will cause i to be MAXINT. Not good.) */
  10. case '\012': /* at start of a line, start with -- ? */
  11. if (!(i && i-- && ((c = SNX (bs)) == '-') && i-- &&
  12. ((c = SNX (bs)) == '-'))) break;