ArrayIndexOutOfBoundsException in CodecUtil.encodeQuotedPrintableBinary for
large inputs
----------------------------------------------------------------------------------------
Key: MIME4J-61
URL: https://issues.apache.org/jira/browse/MIME4J-61
Project: Mime4j
Issue Type: Bug
Affects Versions: 0.4
Reporter: Niklas Therning
Fix For: 0.4
The exception occurs in write() when outputIndex = outBuffer.length. When this
is true the contents of the buffer should be flushed. But the current code
tries to write one more byte to the out buffer before it is flushed. The fix is
trivial. I'll commit it along with a test case shortly.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]