schwehr / libais

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

terminate called after throwing an instance of 'std::bad_alloc' #149

Open anitagraser opened 8 years ago

anitagraser commented 8 years ago

The following payloads are examples that crash libais with std::bad_alloc

"8<CSH0l0@00",
"64W6V<0r`R720400"
"65TcPt=HQaT004D0@00000000000"
"6815DM278u=004D0@0@000000000"

(running libais-0.15-py2.7-linux-x86_64.egg)

schwehr commented 6 years ago

I'm reopening as I have not tested any of the example payloads

schwehr commented 6 years ago

@anitagraser Thanks for your bug report! Sorry I'm so slow at looked at it. Please include the full NMEA when reporting issues if you can. I can reconstruct the issue, but it's always best to have the full strings.