schwehr / libais

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

Segmentation Fault when decoding message #179

Open enriquetuya opened 6 years ago

enriquetuya commented 6 years ago

When decoding the nmea message \s:rORBCOMM000,q:u,c:1520855037,T:2018-03-12 11.43.57*59\!AIVDM,1,1,,A,83am8S@j<d8dtfMEuj9loFOM6@00,0*69 we get a Segmentation fault error. The bash below can be used to reproduce the error:

#!/bin/bash

mkdir libais_test
cd libais_test

virtualenv venv
source venv/bin/activate
pip --cache-dir ./pip-cache install \
  git+https://github.com/schwehr/libais@4e9b6d6ae4ee02ed2bdb4a9d7835cff4780287d5

python -c "import ais; print ais.decode('83am8S@j<d8dtfMEuj9loFOM6@00',0)"