fulup-bzh / GeoGate

GeoGate is an opensource tracking GPS/AIS framework to implement GTS applications.
Apache License 2.0
74 stars 39 forks source link

fix buffer range error #27

Closed wayofthefuture closed 6 years ago

wayofthefuture commented 6 years ago

Messages in the wild sometimes produce a negative length which will cause a buffer range error exception, stating size argument must not be negative. This occurs in the new Buffer() constructor of the GetStr() function. This his been tested on several different ships using several different AIS receiver boxes.

fulup-bzh commented 6 years ago

Thank you for the contribution