From 839e9c94e822d7aa5c7b0e2d6fef83b7fadad784 Mon Sep 17 00:00:00 2001 From: Melanie Thielker Date: Sun, 27 Jul 2008 19:12:40 +0000 Subject: Prevents Mantis #1829 Add array size check to packet from viewer to prevent OOB exception --- OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'OpenSim/Region/ClientStack/LindenUDP') diff --git a/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs b/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs index b9a00c0..995fe5e 100644 --- a/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs +++ b/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs @@ -5644,6 +5644,8 @@ namespace OpenSim.Region.ClientStack.LindenUDP case "instantmessage": if (((Scene)m_scene).ExternalChecks.ExternalChecksCanIssueEstateCommand(this.AgentId)) { + if (messagePacket.ParamList.Length < 5) + break; LLUUID invoice = messagePacket.MethodData.Invoice; LLUUID SenderID = new LLUUID(Helpers.FieldToUTF8String(messagePacket.ParamList[2].Parameter)); string SenderName = Helpers.FieldToUTF8String(messagePacket.ParamList[3].Parameter); -- cgit v1.1