libais
libais copied to clipboard
Ais6_1_3 is always parsed incorrectly (Crash).
Here is single line string to reproduce the crash.
!AIVDM,1,1,,A,601uEODhrspP04<100,4*6E
Here is an explanation for why the crash occurs.
Ais6_1_3::Ais6_1_3(const char *nmea_payload, const size_t pad)
...
...
req_dac = bs.ToUnsignedInt(88, 10); <== This advances current_position to 98
spare2 = bs.ToUnsignedInt(94, 6); <== This call will cause an assert failures because start != current_position
Can you give me a donation of a couple more sample messages of this type?
Thanks for the bug report that directly points out the issue.