libais icon indicating copy to clipboard operation
libais copied to clipboard

Ais6_1_3 is always parsed incorrectly (Crash).

Open mb12 opened this issue 9 years ago • 1 comments

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

mb12 avatar Apr 07 '16 18:04 mb12

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.

schwehr avatar Apr 08 '16 19:04 schwehr