activemq-artemis/artemis-protocols/artemis-proton-plug
Martyn Taylor 432e2ce178 ARTEMIS-570 Fix buffer size overflow ProtonHandler
There is a race condition in the ProtonHandlerImpl.outputBuffer()
method.  The method checks to see how many bytes (n) are pending in the
underlying ProtonJ buffer, then creates a Netty buffer of size n.  It
then writes the contents of the pending ProtonJ head.  However, ProtonJ
can still write to it's internal buffer, meaning that it's buffer.size >
n causing an illegalArgumentException.  This patch fixes it by only
writing 'n' bytes to the Netty buffer.
2016-06-17 15:04:32 -04:00
..
src ARTEMIS-570 Fix buffer size overflow ProtonHandler 2016-06-17 15:04:32 -04:00
pom.xml [maven-release-plugin] prepare for next development iteration 2016-06-09 12:52:56 +01:00