Open enriquetuya opened 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:
\s:rORBCOMM000,q:u,c:1520855037,T:2018-03-12 11.43.57*59\!AIVDM,1,1,,A,83am8S@j<d8dtfMEuj9loFOM6@00,0*69
#!/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)"
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: