diff options
author | Melanie Thielker | 2008-07-27 19:12:40 +0000 |
---|---|---|
committer | Melanie Thielker | 2008-07-27 19:12:40 +0000 |
commit | 839e9c94e822d7aa5c7b0e2d6fef83b7fadad784 (patch) | |
tree | 4e2091bc7b1da78fb2e83433cf6053b97402aa48 | |
parent | applied mantis patch 1833 , thanks kinoc (diff) | |
download | opensim-SC-839e9c94e822d7aa5c7b0e2d6fef83b7fadad784.zip opensim-SC-839e9c94e822d7aa5c7b0e2d6fef83b7fadad784.tar.gz opensim-SC-839e9c94e822d7aa5c7b0e2d6fef83b7fadad784.tar.bz2 opensim-SC-839e9c94e822d7aa5c7b0e2d6fef83b7fadad784.tar.xz |
Prevents Mantis #1829
Add array size check to packet from viewer to prevent OOB exception
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs | 2 |
1 files changed, 2 insertions, 0 deletions
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 | |||
5644 | case "instantmessage": | 5644 | case "instantmessage": |
5645 | if (((Scene)m_scene).ExternalChecks.ExternalChecksCanIssueEstateCommand(this.AgentId)) | 5645 | if (((Scene)m_scene).ExternalChecks.ExternalChecksCanIssueEstateCommand(this.AgentId)) |
5646 | { | 5646 | { |
5647 | if (messagePacket.ParamList.Length < 5) | ||
5648 | break; | ||
5647 | LLUUID invoice = messagePacket.MethodData.Invoice; | 5649 | LLUUID invoice = messagePacket.MethodData.Invoice; |
5648 | LLUUID SenderID = new LLUUID(Helpers.FieldToUTF8String(messagePacket.ParamList[2].Parameter)); | 5650 | LLUUID SenderID = new LLUUID(Helpers.FieldToUTF8String(messagePacket.ParamList[2].Parameter)); |
5649 | string SenderName = Helpers.FieldToUTF8String(messagePacket.ParamList[3].Parameter); | 5651 | string SenderName = Helpers.FieldToUTF8String(messagePacket.ParamList[3].Parameter); |