pschichtel / JavaCAN

A simple JNI wrapper for the socketcan API provided by the Linux kernel. As it is wrapping a Linux Kernel API, it is intended for use on Linux only.
https://schich.tel
MIT License
48 stars 21 forks source link

Primitive Array Critical handling possibly broken #12

Closed pschichtel closed 5 years ago

pschichtel commented 5 years ago

GetPrimitveArrayCritical calls don't check and their result and the call to ReleasePrimitiveArrayCritical() for the fds passes the wrong java object.

https://github.com/pschichtel/JavaCAN/blob/master/src/main/c/javacan_epoll.c#L100