Uploaded image for project: 'James Server'
  1. James Server
  2. JAMES-2075

MimeMessageInputStream did not initialize array size on copy

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: James Core, JMAP, mailbox
    • Labels:
      None

      Description

      It leads to many realocations, starting at 32 bytes, and doubling each time.

      It is not the only class affected:

      • MessageSearches
      • FullByteContent
      • SerialiseToHTTP
      • StripAttachment
      • MimeBodyElement
      • MailHeaders
      • MimeMessageInputStream
      • MimeMessageWrapper
      • MBoxMailRepository
      • MailMessageAlteringUtils
      • MIMEMessageConverter

        Attachments

          Activity

            People

            • Assignee:
              aduprat Antoine Duprat
              Reporter:
              BTellier Tellier Benoit
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: