netty5/transport-native-unix-common/src
Scott Mitchell af2f343648
FileDescriptor writev core dump
Motivation:
FileDescriptor#writev calls JNI code, and that JNI code dereferences a NULL pointer which crashes the application. This occurs when writing a single CompositeByteBuf object with more than one component.

Modifications:
- Initialize the iovec iterator properly to avoid the core dump
- Fix the array length calculation if we aren't able to fit all the ByteBuffer objects in the iovec array

Result:
No more core dump.
2017-12-14 16:47:31 -08:00
..
main FileDescriptor writev core dump 2017-12-14 16:47:31 -08:00
test/java/io/netty/channel/unix fix UnixChannelUtil#isBufferCopyNeededForWrite 2017-06-24 21:27:54 -07:00