mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 00:46:02 +08:00
Prevents Mantis #1829
Add array size check to packet from viewer to prevent OOB exception
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user