Details
-
Bug
-
Resolution: Done
-
Major
-
None
-
None
-
None
Description
resetBuffer resets only the pooled buffer, not the ByteBuffer from the pooled buffer. After invoking resetBuffer, the buffer itself may be clobbered, and writes to the stream will produce unexpected data.
Without other components checking out the same buffer, the stream still fails because the buffer itself isn't reset and contents are still written to the stream.