netty5/buffer
Norman Maurer de76843905 Throw ReadOnlyBufferException if unsafe buffer is used and dst is direct
Motivation:

We missed to check if the dst is ready only before using unsafe to copy data into it which lead to data-corruption. We need to ensure we respect ready only ByteBuffer.

Modifications:

- Correctly check if the dst is ready only before copy data into it in UnsafeByteBufUtil
- Also make it work for buffers that are not direct and not have an array

Result:

No more data corruption possible if the dst buffer is readonly and unsafe buffer implementation is used.
2015-12-17 13:24:58 +01:00
..
src Throw ReadOnlyBufferException if unsafe buffer is used and dst is direct 2015-12-17 13:24:58 +01:00
pom.xml Fix version 2015-11-24 21:24:22 +01:00