From cbb7915e491ba07c4fe1091155661fa71b801959 Mon Sep 17 00:00:00 2001 From: Richard Harrison Date: Thu, 16 Feb 2017 18:30:17 +0100 Subject: [PATCH] Ensure to break out of the loop when an unrecognised incoming MP property id is encountered in a packet. --- src/MultiPlayer/multiplaymgr.cxx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/MultiPlayer/multiplaymgr.cxx b/src/MultiPlayer/multiplaymgr.cxx index c807b984d..823614571 100644 --- a/src/MultiPlayer/multiplaymgr.cxx +++ b/src/MultiPlayer/multiplaymgr.cxx @@ -1418,6 +1418,9 @@ FGMultiplayMgr::ProcessPosMsg(const FGMultiplayMgr::MsgBuf& Msg, SG_LOG(SG_NETWORK, SG_DEBUG, "FGMultiplayMgr::ProcessPosMsg - " "message from " << MsgHdr->Callsign << " has unknown property id " << id); + // At this point the packet must be considered to be unreadable + // as we have no way of knowing the length of this property (it could be a string) + break; } } noprops: