netty5/transport-native-kqueue
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
..
src FileDescriptor writev core dump 2017-12-14 16:47:31 -08:00
pom.xml Added Automatic-Module-Name for native modules to support Java 9 modules 2017-12-14 19:41:45 +00:00