From f61ea1998e07858a7553b2a805cfc3647aa89a5a Mon Sep 17 00:00:00 2001 From: MW Date: Thu, 20 Mar 2008 15:33:08 +0000 Subject: Added back a fix that lbsa71 did aqes ago to fix a buffer overflow in the packetpool, which somewhere through time got lost/reverted --- OpenSim/Framework/Communications/Capabilities/LLSDInventoryItem.cs | 1 - OpenSim/Framework/PacketPool.cs | 3 ++- OpenSim/Region/Environment/ModuleLoader.cs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/OpenSim/Framework/Communications/Capabilities/LLSDInventoryItem.cs b/OpenSim/Framework/Communications/Capabilities/LLSDInventoryItem.cs index 48b1f3d..36a2cbf 100644 --- a/OpenSim/Framework/Communications/Capabilities/LLSDInventoryItem.cs +++ b/OpenSim/Framework/Communications/Capabilities/LLSDInventoryItem.cs @@ -48,7 +48,6 @@ namespace OpenSim.Region.Capabilities public string name; public string desc; public int created_at; - } [LLSDMap] diff --git a/OpenSim/Framework/PacketPool.cs b/OpenSim/Framework/PacketPool.cs index 7b67f0b..31548a0 100644 --- a/OpenSim/Framework/PacketPool.cs +++ b/OpenSim/Framework/PacketPool.cs @@ -110,9 +110,10 @@ namespace OpenSim.Framework return packet; } - private byte[] decoded_header = new byte[10]; + // private byte[] decoded_header = new byte[10]; private PacketType GetType(byte[] bytes) { + byte[] decoded_header = new byte[10 + 8]; ushort id; libsecondlife.PacketFrequency freq; diff --git a/OpenSim/Region/Environment/ModuleLoader.cs b/OpenSim/Region/Environment/ModuleLoader.cs index 08ed4f3..4a8bf7b 100644 --- a/OpenSim/Region/Environment/ModuleLoader.cs +++ b/OpenSim/Region/Environment/ModuleLoader.cs @@ -140,7 +140,7 @@ namespace OpenSim.Region.Environment AgentAssetTransactionModule transactionsModule = new AgentAssetTransactionModule(); if (m_loadedSharedModules.ContainsKey(transactionsModule.Name)) { - m_log.ErrorFormat("[MODULES]: Module name \"{0}\" already exists in module list. Module type {1} not added!", xmlRpcMod.Name, "XMLRPCModule"); + m_log.ErrorFormat("[MODULES]: Module name \"{0}\" already exists in module list. Module type {1} not added!", transactionsModule.Name, "TransactionModule"); } else { -- cgit v1.1