~ubuntu-branches/ubuntu/trusty/xulrunner/trusty

« back to all changes in this revision

Viewing changes to mailnews/mime/src/mimemsg.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Devid Antonio Filoni
  • Date: 2008-08-25 13:04:18 UTC
  • mfrom: (1.1.12 upstream)
  • Revision ID: james.westby@ubuntu.com-20080825130418-ck1i2ms384tzb9m0
Tags: 1.8.1.16+nobinonly-0ubuntu1
* New upstream release (taken from upstream CVS), LP: #254618.
* Fix MFSA 2008-35, MFSA 2008-34, MFSA 2008-33, MFSA 2008-32, MFSA 2008-31,
  MFSA 2008-30, MFSA 2008-29, MFSA 2008-28, MFSA 2008-27, MFSA 2008-25,
  MFSA 2008-24, MFSA 2008-23, MFSA 2008-22, MFSA 2008-21, MFSA 2008-26 also
  known as CVE-2008-2933, CVE-2008-2785, CVE-2008-2811, CVE-2008-2810,
  CVE-2008-2809, CVE-2008-2808, CVE-2008-2807, CVE-2008-2806, CVE-2008-2805,
  CVE-2008-2803, CVE-2008-2802, CVE-2008-2801, CVE-2008-2800, CVE-2008-2798.
* Drop 89_bz419350_attachment_306066 patch, merged upstream.
* Bump Standards-Version to 3.8.0.

Show diffs side-by-side

added added

removed removed

Lines of Context:
244
244
                  char *s = (char *)PR_MALLOC(length + MSG_LINEBREAK_LEN + 1);
245
245
                  if (!s) return MIME_OUT_OF_MEMORY;
246
246
                  memcpy(s, line, length);
247
 
                  PL_strcpy(s + length, MSG_LINEBREAK);
 
247
                  PL_strncpyz(s + length, MSG_LINEBREAK, MSG_LINEBREAK_LEN);
248
248
                  status = kid->clazz->parse_buffer (s, length + MSG_LINEBREAK_LEN, kid);
249
249
                  PR_Free(s);
250
250
                  return status;
749
749
                            (obj->options->headers == MimeHeadersOnly),
750
750
                            msgID,
751
751
                            mailCharset);
 
752
 
 
753
  // Change the default_charset by the charset of the original message
 
754
  // ONLY WHEN THE CHARSET OF THE ORIGINAL MESSAGE IS NOT US-ASCII
 
755
  // ("ISO-8859-1") and defailt_charset and mailCharset are different.
 
756
  if ( (mailCharset) && (PL_strcasecmp(mailCharset, "US-ASCII")) &&
 
757
       (PL_strcasecmp(mailCharset, "ISO-8859-1")) &&
 
758
       (PL_strcasecmp(obj->options->default_charset, mailCharset)) &&
 
759
       !obj->options->override_charset )
 
760
  {
 
761
    PR_Free(obj->options->default_charset);
 
762
    obj->options->default_charset = strdup(mailCharset);
 
763
  }
 
764
 
752
765
  PR_FREEIF(msgID);
753
766
  PR_FREEIF(mailCharset);
754
767