schwehr / libais

C++ decoder for Automatic Identification System for tracking ships and decoding maritime information
Other
215 stars 94 forks source link

Ais6_1_5 message is always parsed incorrectly. #157

Closed alex-700 closed 6 years ago

alex-700 commented 7 years ago

Here is something wrong. Second parameter (len) should be at most 32. spare = bs.ToUnsignedInt(119, 49); I suggest comment spare at all :)

himikof commented 7 years ago

For reference: this message is defined in ITU-R M.1371-5 Annex 5 (International function message 5, table 33). The "spare" field at the end is reserved and should not be read at all.

schwehr commented 6 years ago

Fixed by https://github.com/schwehr/libais/pull/148 / 65cb1b12d65ebab97a34f4e54daaae81eab4b949 and https://github.com/schwehr/libais/pull/163