NeuronRobotics / nrjavaserial

A Java Serial Port system. This is a fork of the RXTX project that uses in jar loading of the native code.
Other
345 stars 143 forks source link

Crash issue observered when inserting already closed COM port #144

Open Ranjith619 opened 5 years ago

Ranjith619 commented 5 years ago

steps to reproduce the issue:


  1. Open COM port 1
  2. Open COM port 2
  3. Close COM port 1
  4. again Open COM port 1 crash issue will observed.

Fix:


https://github.com/NeuronRobotics/nrjavaserial/blob/master/src/main/c/src/windows/termios.c Line Number :1099

if(index->prev != NULL) { 1099 index->prev->next = port; } else { first_tl = port; }

madhephaestus commented 4 years ago

please submit a PR for review