mirror of
https://github.com/f4exb/sdrangel.git
synced 2026-06-18 13:48:37 -04:00
AIS: Validate message length. Fixes #2125
This commit is contained in:
@@ -152,7 +152,9 @@ bool AISGUI::handleMessage(const Message& message)
|
||||
// Decode the message
|
||||
AISMessage *ais = AISMessage::decode(report.getPacket());
|
||||
// Update table
|
||||
updateVessels(ais, report.getDateTime());
|
||||
if (ais) {
|
||||
updateVessels(ais, report.getDateTime());
|
||||
}
|
||||
}
|
||||
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user