netty5/transport-native-unix-common/src
Norman Maurer f6251c8256 IovArray.add(...) should check if buffer has memory address.
Motivation:

We currently not check if the buffer has a memory address and just assume this is the case if the nioBufferCount() == 1.

Modifications:

- Check hasMemoryAddress() before trying to access it.
- Add unit case.

Result:

More correct and robust code. Related to [#7752].
2018-03-13 08:51:01 +01:00
..
main IovArray.add(...) should check if buffer has memory address. 2018-03-13 08:51:01 +01:00
test/java/io/netty/channel/unix fix UnixChannelUtil#isBufferCopyNeededForWrite 2017-06-24 21:27:54 -07:00